diff options
author | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-07-24 10:48:01 +0000 |
---|---|---|
committer | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-07-24 10:48:01 +0000 |
commit | 4289505932068a0c071c7c9fb4655678394cb469 (patch) | |
tree | 91d9489e8b589964976c0145b16ae06bed50e772 /catsprintf.c | |
parent | 2a92460699aa8a18bc0602d48afed1ebb408c16a (diff) | |
download | python-dmidecode-4289505932068a0c071c7c9fb4655678394cb469.tar.gz python-dmidecode-4289505932068a0c071c7c9fb4655678394cb469.tar.xz python-dmidecode-4289505932068a0c071c7c9fb4655678394cb469.zip |
Now that code has been converted, work has started on "bios", and at the point
of proof-of-concept.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@12 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'catsprintf.c')
-rw-r--r-- | catsprintf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/catsprintf.c b/catsprintf.c index c7c02e4..f27ce0f 100644 --- a/catsprintf.c +++ b/catsprintf.c @@ -80,7 +80,9 @@ int dmiSetItem(PyObject* dict, const char *key, const char *format, ...) { char buffer[2048]; vsprintf(buffer, format, arg); va_end(arg); - PyDict_SetItem(pydata, key, Py_BuildValue("s", buffer)); + //printf("DEBUG: Setting k:%s, f:%s s:%s...", key, format, buffer); + PyDict_SetItem(dict, Py_BuildValue("s", key), Py_BuildValue("s", buffer)); + //printf("Done.\n"); return 0; } |