Show
Ignore:
Timestamp:
11/01/09 07:12:16 (3 years ago)
Author:
Pierre-Alexandre Meyer <pierre@…>
Children:
821b545a82891ee64e407c981f6562089e9c524e
Parents:
78f771c881f9ef27ca4a35b3fc9efc407edba665
git-committer:
Pierre-Alexandre Meyer <pierre@mouraf.org> / 2009-11-01T00:12:16Z-0700
Message:

hdt: use plain printf for help, not more_printf (CLI)

The help prints several elements on the same line. This can't
work with more_printf() as the macro assumes each call contains
one and only one \n.

Signed-off-by: Pierre-Alexandre Meyer <pierre@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • com32/hdt/hdt-common.h

    r78f771 r6e20c1  
    6666} while (0); 
    6767 
     68/* The brokeness of that macro is that 
     69 * it assumes that __VA_ARGS__ contains 
     70 * one \n (and only one) 
     71 */ 
    6872#define more_printf(...) do {\ 
    6973 if (display_line_nb == 20) {\ 
     
    7478 }\ 
    7579 printf(__VA_ARGS__);\ 
    76  display_line_nb++; \ 
     80 display_line_nb++;\ 
    7781} while (0); 
    7882