aboutsummaryrefslogtreecommitdiff
path: root/modules/devices
diff options
context:
space:
mode:
Diffstat (limited to 'modules/devices')
-rw-r--r--modules/devices/arm/processor.c6
-rw-r--r--modules/devices/usb.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/modules/devices/arm/processor.c b/modules/devices/arm/processor.c
index c37aadca..b5c33ce6 100644
--- a/modules/devices/arm/processor.c
+++ b/modules/devices/arm/processor.c
@@ -38,7 +38,7 @@ processor_scan(void)
tmp[0] = g_strstrip(tmp[0]);
tmp[1] = g_strstrip(tmp[1]);
- get_str("Processor", processor->model_name);
+ get_str("model name", processor->model_name);
get_str("Features", processor->flags);
get_float("BogoMIPS", processor->bogomips);
@@ -65,9 +65,9 @@ processor_get_info(GSList *processors)
"BogoMips=%.2f\n"
"Endianesss="
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
- "Little Endian",
+ "Little Endian"
#else
- "Big Endian",
+ "Big Endian"
#endif
"\n"
"Hardware=%s\n",
diff --git a/modules/devices/usb.c b/modules/devices/usb.c
index a52954a6..96325b23 100644
--- a/modules/devices/usb.c
+++ b/modules/devices/usb.c
@@ -285,14 +285,14 @@ void __scan_usb_lsusb_add_device(char *buffer, int bufsize, FILE *lsusb, int usb
}
}
- if (strstr(dev_class, "0 (Defined at Interface level)")) {
+ if (dev_class && strstr(dev_class, "0 (Defined at Interface level)")) {
g_free(dev_class);
if (int_class) {
dev_class = int_class;
} else {
dev_class = g_strdup("Unknown");
}
- }
+ } else dev_class = g_strdup("Unknown");
tmp = g_strdup_printf("USB%d", usb_device_number);
usb_list = h_strdup_cprintf("$%s$%s=\n", usb_list, tmp, name);