Skip to content
Permalink
Browse files

Build fixes

  • Loading branch information...
lpereira committed Aug 10, 2019
1 parent cb3c130 commit 8e0ded21eef05c0f00deeb35b686e6d31367e8bf
Showing with 3 additions and 4 deletions.
  1. +3 −4 hardinfo/vendor.c
@@ -58,7 +58,6 @@ static Vendor vendors_builtin[] = {
};

#define ven_msg(msg, ...) fprintf (stderr, "[%s] " msg "\n", __FUNCTION__, ##__VA_ARGS__) /**/
#define ven_msg_debug(msg, ...) DEBUG(msg, __VA_ARGS__)

static vendor_list vendors = NULL;
const vendor_list get_vendors_list() { return vendors; }
@@ -139,7 +138,7 @@ static int read_from_vendor_ids(const char *path) {
char *p, *b;
int tl, line = -1, ok = 0;

ven_msg_debug("using vendor.ids format loader for %s", path);
DEBUG("using vendor.ids format loader for %s", path);

fd = fopen(path, "r");
if (!fd) return 0;
@@ -241,7 +240,7 @@ static int read_from_vendor_ids(const char *path) {

fclose(fd);

ven_msg_debug("... found %d match strings", count);
DEBUG("... found %d match strings", count);

return count;
}
@@ -320,7 +319,7 @@ void vendor_init(void)
}

void vendor_cleanup() {
ven_msg_debug("cleanup vendor list");
DEBUG("cleanup vendor list");
g_slist_free_full(vendors, (GDestroyNotify)vendor_free);
}

0 comments on commit 8e0ded2

Please sign in to comment.
You can’t perform that action at this time.