diff options
author | Erwan Velu <erwan.velu@free.fr> | 2009-05-03 21:45:26 +0200 |
---|---|---|
committer | Erwan Velu <erwan.velu@free.fr> | 2009-05-03 21:45:26 +0200 |
commit | a88671c995e6f25f46c921e1035a3a68a3a72660 (patch) | |
tree | c9fa94940913d72b2ce061aa5b229ba63a8ece9d | |
parent | 18366fe40e2f268c63f643043a726d2cfeab6d2f (diff) | |
download | hdt-a88671c995e6f25f46c921e1035a3a68a3a72660.tar.gz hdt-a88671c995e6f25f46c921e1035a3a68a3a72660.tar.xz hdt-a88671c995e6f25f46c921e1035a3a68a3a72660.zip |
hdt: using reset_more_printf in memory mode
Impact: prevent weird display
more_printf needs reset_more_printf()
-rw-r--r-- | com32/hdt/hdt-cli-memory.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/com32/hdt/hdt-cli-memory.c b/com32/hdt/hdt-cli-memory.c index e0516aef..c23dbbdd 100644 --- a/com32/hdt/hdt-cli-memory.c +++ b/com32/hdt/hdt-cli-memory.c @@ -42,6 +42,7 @@ static void show_memory_e820(int argc __unused, char **argv __unused, detect_memory_e820(map, E820MAX, &count); printf("BIOS-provided physical RAM e820 map:\n"); + reset_more_printf(); for (int i = 0; i < count; i++) { get_type(map[i].type, type, 14); more_printf("%016llx - %016llx %016llx (%s)\n", @@ -55,6 +56,7 @@ static void show_memory_e801(int argc __unused, char **argv __unused, { int mem_low, mem_high = 0; + reset_more_printf(); if (detect_memory_e801(&mem_low, &mem_high)) { more_printf("e801 bogus!\n"); } else { @@ -68,6 +70,7 @@ static void show_memory_88(int argc __unused, char **argv __unused, { int mem_size = 0; + reset_more_printf(); if (detect_memory_88(&mem_size)) { more_printf("8800h bogus!\n"); } else { |