[PATCH] lib: fwts_log: set non-TTY log with to 80 characters (LP: #1200592)
Colin King
colin.king at canonical.com
Fri Jul 12 11:20:18 UTC 2013
From: Colin Ian King <colin.king at canonical.com>
The default non-TTY log output width is 100 characters, which is a
pain when piping fwts output through tools like less on a standard
80 char wide TTY. Set the default to 80 characters.
Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
src/lib/src/fwts_log.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/lib/src/fwts_log.c b/src/lib/src/fwts_log.c
index d8b7cc9..693b943 100644
--- a/src/lib/src/fwts_log.c
+++ b/src/lib/src/fwts_log.c
@@ -16,8 +16,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
-#define LOG_LINE_WIDTH 100
-
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
@@ -31,6 +29,7 @@
#include "fwts.h"
+#define LOG_LINE_WIDTH (80)
#define LOG_UNKOWN_FIELD "???"
static int log_line_width = 0;
--
1.8.1.2
More information about the fwts-devel
mailing list