crash-worker: add dump_systemstate memps 37/146337/2
authorminsoo kim <ms203.kim@samsung.com>
Mon, 21 Aug 2017 05:49:32 +0000 (14:49 +0900)
committerSunmin Lee <sunm.lee@samsung.com>
Thu, 31 Aug 2017 02:25:33 +0000 (11:25 +0900)
Change-Id: I50fbdc296a0ab8dfab96cfde29b0c3afa94eb1e7
Signed-off-by: minsoo kim <ms203.kim@samsung.com>
src/dump_systemstate/dump_systemstate.c

index 0359a6a9581819fc5095374a7a53b0b8f2a11816..673ca9adfe36fe82e1d12d43a90189b4bc90baa1 100644 (file)
@@ -167,12 +167,12 @@ int main(int argc, char *argv[])
        if (ret < 0)
                goto exit_close;
 
-       if (is_root) {
-               fprintf_fd(out_fd, "\n==== System memory statistics (/usr/bin/memps -v)\n");
-               ret = run_command_write_fd("/usr/bin/memps -v", out_fd);
-               if (ret < 0)
-                       goto exit_close;
+       fprintf_fd(out_fd, "\n==== System memory statistics (/usr/bin/memps -v)\n");
+       ret = run_command_write_fd("/usr/bin/memps -v", out_fd);
+       if (ret < 0)
+               goto exit_close;
 
+       if (is_root) {
                fprintf_fd(out_fd, "\n==== System configuration (/usr/bin/vconftool get memory, db, file)\n");
                ret = run_command_write_fd("/usr/bin/vconftool get memory/ -r", out_fd);
                if (ret < 0)