aboutsummaryrefslogtreecommitdiff
path: root/modules/devices/monitors.c
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2019-08-24 16:45:18 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2019-08-28 13:15:48 +0200
commit517f726a4a61e7b18e1d290d28bcbd43a072af58 (patch)
tree0686e17efd61548e3af7c3cb6772be1404a4d67f /modules/devices/monitors.c
parent691620e2d0855ab8ea5ddedc91c65a9df6ba0cfa (diff)
monitors: fixes for vendor oui
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/devices/monitors.c')
-rw-r--r--modules/devices/monitors.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/devices/monitors.c b/modules/devices/monitors.c
index 7fd60bf5..0dfea7d3 100644
--- a/modules/devices/monitors.c
+++ b/modules/devices/monitors.c
@@ -117,11 +117,7 @@ gchar *monitor_vendor_str(monitor *m, gboolean include_value, gboolean link_name
strcpy(v, ven.pnp);
strcpy(t, "PNP");
} else if (ven.type == VEN_TYPE_OUI) {
- sprintf(v, "%02x%02x%02x",
- /* file lists as big endian */
- (ven.oui >> 16) & 0xff,
- (ven.oui >> 8) & 0xff,
- ven.oui & 0xff );
+ strcpy(v, ven.oui_str);
strcpy(t, "OUI");
}