diff options
| author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2008-05-24 01:12:55 +0000 | 
|---|---|---|
| committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2008-05-24 01:12:55 +0000 | 
| commit | b7748f00e88b21322556c107b7a4c7c9469c0899 (patch) | |
| tree | 77d1c473d66834917856f757da044909b0df391d /hardinfo2/arch/linux/common | |
| parent | eed6d43e0604dd1ecb6c6cce937454fb962ce7f0 (diff) | |
Cleanups.
Diffstat (limited to 'hardinfo2/arch/linux/common')
| -rw-r--r-- | hardinfo2/arch/linux/common/net.h | 1 | ||||
| -rw-r--r-- | hardinfo2/arch/linux/common/usb.h | 13 | 
2 files changed, 10 insertions, 4 deletions
| diff --git a/hardinfo2/arch/linux/common/net.h b/hardinfo2/arch/linux/common/net.h index dd3928f1..9c3e3cf2 100644 --- a/hardinfo2/arch/linux/common/net.h +++ b/hardinfo2/arch/linux/common/net.h @@ -181,6 +181,7 @@ void get_net_info(char *if_name, NetInfo * netinfo)      }  #ifdef HAS_LINUX_WE +    netinfo->is_wireless = FALSE;      get_wireless_info(fd, netinfo);  #endif diff --git a/hardinfo2/arch/linux/common/usb.h b/hardinfo2/arch/linux/common/usb.h index f7886cb6..f6556755 100644 --- a/hardinfo2/arch/linux/common/usb.h +++ b/hardinfo2/arch/linux/common/usb.h @@ -15,7 +15,10 @@   *    along with this program; if not, write to the Free Software   *    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA   */ - +/* + * FIXME: + * - listing with sysfs does not generate device hierarchy + */  static gboolean  remove_usb_devices(gpointer key, gpointer value, gpointer data)  { @@ -46,9 +49,11 @@ void __scan_usb_sysfs_add_device(gchar * endpoint, int n)      }      if (!(product = h_sysfs_read_string(endpoint, "product"))) { -    	product =  -	    g_strdup_printf("Unknown USB %.2f device (class %d)", version, -			    classid); +	if (classid == 9) { +	    product = g_strdup_printf("USB %.2f Hub", version); +	} else { +	    product = g_strdup_printf("Unknown USB %.2f Device (class %d)", version, classid); +	}      }      const gchar *url = vendor_get_url(manufacturer); | 
