summaryrefslogtreecommitdiff
path: root/com32/gpllib/dmi
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-10-30 20:15:53 +0100
committerErwan Velu <erwan.velu@free.fr>2009-10-30 20:15:53 +0100
commitcf14910be4b9941247f5aebb8d901455532553dc (patch)
treeba45e6617f02e942614c79373cb2188d999bc6f9 /com32/gpllib/dmi
parentd4849a0057a73ac8041e7935dc5ed1598111dcc9 (diff)
downloadsyslinux-cf14910be4b9941247f5aebb8d901455532553dc.tar.gz
hdt: Fixing {s}printf typo
Impact: Avoid some unwanted printf Some dmi calls were using printf instead of sprintf. This solves ticket #11
Diffstat (limited to 'com32/gpllib/dmi')
-rw-r--r--com32/gpllib/dmi/dmi_memory.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/com32/gpllib/dmi/dmi_memory.c b/com32/gpllib/dmi/dmi_memory.c
index 588e4ad6..5c747d69 100644
--- a/com32/gpllib/dmi/dmi_memory.c
+++ b/com32/gpllib/dmi/dmi_memory.c
@@ -242,9 +242,9 @@ void dmi_memory_module_size(uint8_t code, char* size)
}
if(code&0x80)
- printf(size, "%s", "(Double-bank Connection)");
+ sprintf(size, "%s", "(Double-bank Connection)");
else
- printf(size, "%s", "(Single-bank Connection)");
+ sprintf(size, "%s", "(Single-bank Connection)");
}
void dmi_memory_module_error(uint8_t code, const char *prefix, char *error)
@@ -253,10 +253,10 @@ void dmi_memory_module_error(uint8_t code, const char *prefix, char *error)
sprintf(error, "%s", "See Event Log\n");
else
{ if((code&0x03)==0)
- printf(error, "%s", "OK\n");
+ sprintf(error, "%s", "OK\n");
if(code&(1<<0))
- printf(error, "%sUncorrectable Errors\n", prefix);
+ sprintf(error, "%sUncorrectable Errors\n", prefix);
if(code&(1<<1))
- printf(error, "%sCorrectable Errors\n", prefix);
+ sprintf(error, "%sCorrectable Errors\n", prefix);
}
}