diff options
author | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-09-04 02:26:09 +0000 |
---|---|---|
committer | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-09-04 02:26:09 +0000 |
commit | b3880a3305dcdd866638202b9da95cd99f06b085 (patch) | |
tree | 142d2cb2bc06d47be73276ea2ca5e14d6ac532f7 /dmidecode.c | |
parent | 1fea35ea0c1635e080028c914b88849c721764e6 (diff) | |
download | python-dmidecode-b3880a3305dcdd866638202b9da95cd99f06b085.tar.gz python-dmidecode-b3880a3305dcdd866638202b9da95cd99f06b085.tar.xz python-dmidecode-b3880a3305dcdd866638202b9da95cd99f06b085.zip |
Work on CPU details - seemed to been a bug with appending to a string rather
than rewriting it.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@67 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'dmidecode.c')
-rw-r--r-- | dmidecode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dmidecode.c b/dmidecode.c index 3200d63..e10b931 100644 --- a/dmidecode.c +++ b/dmidecode.c @@ -1024,8 +1024,8 @@ static PyObject *dmi_processor_voltage(u8 code) { const char *dmi_processor_frequency(u8 *p, char *_) { u16 code = WORD(p); - if(code) catsprintf(_, "%u MHz", code); - else catsprintf(_, "Unknown"); + if(code) sprintf(_, "%u MHz", code); + else sprintf(_, "Unknown"); return _; } static PyObject *dmi_processor_frequency_py(u8 *p, char *_) { |