From a79dc66234f32de6fdf1d16b69129f5722f824e9 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 13 Nov 2008 15:34:08 -0800 Subject: Simplify the debug code dump_log doesn't need allocate whole buffer, just print in steps. --- src/cli_new.c | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'src/cli_new.c') diff --git a/src/cli_new.c b/src/cli_new.c index ae48903..dc6b760 100644 --- a/src/cli_new.c +++ b/src/cli_new.c @@ -2138,24 +2138,13 @@ const char *type_to_name(vtw_type_e type) { void dump_log(int argc, char **argv) { int i; - int len; - char *cp; - len = 0; - for (i=0; i