aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-05-03 21:45:26 +0200
committerErwan Velu <erwan.velu@free.fr>2009-05-03 21:45:26 +0200
commita88671c995e6f25f46c921e1035a3a68a3a72660 (patch)
treec9fa94940913d72b2ce061aa5b229ba63a8ece9d
parent18366fe40e2f268c63f643043a726d2cfeab6d2f (diff)
downloadhdt-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.c3
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 {