From: Alice Liu Date: Thu, 18 Sep 2014 05:14:31 +0000 (+0800) Subject: SDB: Added '--no-pager' and '-l' options to journalctl X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=185bc0b63183f338aa4f67f2d5b9bea250d99215;p=sdk%2Ftools%2Fsdb.git SDB: Added '--no-pager' and '-l' options to journalctl 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 --- diff --git a/src/command_function.c b/src/command_function.c index 884f4c9..8660714 100644 --- a/src/command_function.c +++ b/src/command_function.c @@ -499,7 +499,7 @@ int dlog(int argc, char ** argv) { 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;