summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authornima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-12-20 16:26:43 +0000
committernima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-12-20 16:26:43 +0000
commit181dbf623e793005c0293a769ee669eec06a3fad (patch)
tree13d4ef73a703c6893266375fa4b34703e33a3941 /src
parentfe4e406114752c7d61280f32b4af84cdc2504b4d (diff)
downloadpython-dmidecode-181dbf623e793005c0293a769ee669eec06a3fad.tar.gz
python-dmidecode-181dbf623e793005c0293a769ee669eec06a3fad.tar.xz
python-dmidecode-181dbf623e793005c0293a769ee669eec06a3fad.zip
Cleanup.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@137 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'src')
-rw-r--r--src/dmidecode.c10
-rw-r--r--src/dmidecodemodule.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/dmidecode.c b/src/dmidecode.c
index 874720d..f3e10b1 100644
--- a/src/dmidecode.c
+++ b/src/dmidecode.c
@@ -4673,13 +4673,13 @@ int smbios_decode_set_version(u8 *buf, const char *devmem, PyObject** pydata) {
u16 ver = (buf[0x06] << 8) + buf[0x07];
/* Some BIOS attempt to encode version 2.3.1 as 2.31, fix it up */
if(ver == 0x021F) {
- sprintf(vbuf, "SMBIOS 2.3 present. (Version fixup 2.31 -> 2.3).");
+ sprintf(vbuf, "SMBIOS 2.3 present (Version fixup 2.31 -> 2.3)");
ver = 0x0203;
} else {
- sprintf(vbuf, "SMBIOS %i.%i present.", ver>>8, ver&0xFF);
+ sprintf(vbuf, "SMBIOS %i.%i present", ver>>8, ver&0xFF);
}
} else if(check == 0) {
- sprintf(vbuf, "No SMBIOS nor DMI entry point found, sorry G.");
+ sprintf(vbuf, "No SMBIOS nor DMI entry point found");
}
if(check == 1) {
if(*pydata) { Py_DECREF(*pydata); }
@@ -4710,9 +4710,9 @@ int legacy_decode_set_version(u8 *buf, const char *devmem, PyObject** pydata) {
int check = _legacy_decode_check(buf, devmem, pydata);
char vbuf[64]; bzero(vbuf, 64);
if(check == 1) {
- sprintf(vbuf, "Legacy DMI %i.%i present.", buf[0x0E]>>4, buf[0x0E]&0x0F);
+ sprintf(vbuf, "Legacy DMI %i.%i present", buf[0x0E]>>4, buf[0x0E]&0x0F);
} else if(check == 0) {
- sprintf(vbuf, "No SMBIOS nor DMI entry point found, sorry G.");
+ sprintf(vbuf, "No SMBIOS nor DMI entry point found");
}
if(check == 1) {
if(*pydata) { Py_DECREF(*pydata); }
diff --git a/src/dmidecodemodule.c b/src/dmidecodemodule.c
index 3030b97..31f4631 100644
--- a/src/dmidecodemodule.c
+++ b/src/dmidecodemodule.c
@@ -282,7 +282,7 @@ static PyMethodDef DMIDataMethods[] = {
PyMODINIT_FUNC initdmidecode(void) {
init();
- PyObject *module = Py_InitModule3((char *)"dmidecode", DMIDataMethods, "Testing");
+ PyObject *module = Py_InitModule3((char *)"dmidecode", DMIDataMethods, "Python extension module for dmidecode");
PyObject *version = PyString_FromString("2.10");
Py_INCREF(version);