]> code.delx.au - pulseaudio/commitdiff
print machine id during startup
authorLennart Poettering <lennart@poettering.net>
Thu, 7 Aug 2008 00:23:45 +0000 (02:23 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 7 Aug 2008 00:23:45 +0000 (02:23 +0200)
src/daemon/main.c

index 00469c7abcb351a435d6f8ec03d9af054b4785cf..ab438320ed2e81250a3e77a68957939cc4cdd05d 100644 (file)
@@ -767,12 +767,22 @@ int main(int argc, char *argv[]) {
 
     pa_log_info(_("This is PulseAudio %s"), PACKAGE_VERSION);
     pa_log_info(_("Page size is %lu bytes"), (unsigned long) PA_PAGE_SIZE);
+
+    if (!(s = pa_machine_id())) {
+        pa_log(_("Failed to get machine ID"));
+        goto finish;
+    }
+    pa_log_info(_("Machine ID is %s."), s);
+    pa_xfree(s);
+
     if (!(s = pa_get_runtime_dir()))
         goto finish;
     pa_log_info(_("Using runtime directory %s."), s);
     pa_xfree(s);
+
     if (!(s = pa_get_state_dir()))
-        pa_log_info(_("Using state directory %s."), s);
+        goto finish;
+    pa_log_info(_("Using state directory %s."), s);
     pa_xfree(s);
 
     pa_log_info(_("Running in system mode: %s"), pa_yes_no(pa_in_system_mode()));