emulator: Logging "linux distribution infomation"
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Mon, 21 Jan 2013 02:53:50 +0000 (11:53 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Mon, 21 Jan 2013 02:53:50 +0000 (11:53 +0900)
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
tizen/src/emulator.c

index 01a914a..0f3cfd1 100644 (file)
@@ -553,13 +553,23 @@ static void system_info(void)
             sys_info.freeram * (unsigned long long)sys_info.mem_unit / DIV);
     }
 
+    /* get linux distribution version and name */
+    INFO("* Linux distribution and version infomation :\n");
+    char lsb_release_cmd[MAXLEN] = "lsb_release -d -r -c >> ";
+    strcat(lsb_release_cmd, logpath);
+    if(system(lsb_release_cmd) < 0) {
+        INFO("system function command '%s' \
+            returns error !", lsb_release_cmd);
+    }
+
     /* pci device description */
     INFO("* Pci devices :\n");
-    char lscmd[MAXLEN] = "lspci >> ";
-    strcat(lscmd, logpath);
-    int i = system(lscmd);
-    INFO("system function command : %s, \
-        system function returned value : %d\n", lscmd, i);
+    char lspci_cmd[MAXLEN] = "lspci >> ";
+    strcat(lspci_cmd, logpath);
+    if(system(lspci_cmd) < 0) {
+        INFO("system function command '%s' \
+            returns error !", lspci_cmd);
+    }
 
 #elif defined(CONFIG_DARWIN)
     /* TODO: */