journalctl uses a pager for stdout. After "sdb shell",
the pager will not display the text beyond 80 characters.
So added '--no-pager' and '-l' options to journalctl to
make "sdb dlog" show the text beyond 80 characters by
default.
Change-Id: I3f7a630e750e0532f5c1a504d95a6b99a386b0d8
Signed-off-by: Alice Liu <alice.liu@intel.com>
if (verify_journalctl_exist() < 0) {
snprintf(full_cmd, sizeof full_cmd, "shell:/usr/bin/dlogutil");
} else {
- snprintf(full_cmd, sizeof full_cmd, "shell:/usr/bin/journalctl");
+ snprintf(full_cmd, sizeof full_cmd, "shell:/usr/bin/journalctl --no-pager -l");
}
int i;