From 4289505932068a0c071c7c9fb4655678394cb469 Mon Sep 17 00:00:00 2001 From: nima Date: Thu, 24 Jul 2008 10:48:01 +0000 Subject: 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 --- catsprintf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'catsprintf.c') 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; } -- cgit