From 185bc0b63183f338aa4f67f2d5b9bea250d99215 Mon Sep 17 00:00:00 2001 From: Alice Liu Date: Thu, 18 Sep 2014 13:14:31 +0800 Subject: [PATCH] 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 --- src/command_function.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1