dump_systemstate: report ran command faithfully 52/229652/2
authorMichal Bloch <m.bloch@samsung.com>
Thu, 2 Apr 2020 12:14:45 +0000 (14:14 +0200)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Thu, 2 Apr 2020 13:03:06 +0000 (13:03 +0000)
Change-Id: Id4b830804ae420b60a7250c220a56a5695f80cff
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
src/dump_systemstate/dump_systemstate.c

index 814acda..dd183e6 100644 (file)
@@ -189,7 +189,7 @@ int main(int argc, char *argv[])
 
        dpercent = get_disk_used_percent("/opt");
        if (90 < dpercent) {
-               fprintf_fd(out_fd, "\n==== System disk space usage detail - %d%% (/bin/du -ah /opt)\n", dpercent);
+               fprintf_fd(out_fd, "\n==== System disk space usage detail - %d%% (/bin/du -ah /opt --exclude=/opt/usr)\n", dpercent);
                char *du_args[] = {"/bin/du", "-ah", "/opt", "--exclude=/opt/usr", NULL};
                spawn_wait_checked(du_args, NULL);
        }