forked from external/yambar
xcb: log version info as debug, rather than info
This commit is contained in:
parent
2b2c5bbf4d
commit
b52bdf14b2
1 changed files with 11 additions and 9 deletions
8
xcb.c
8
xcb.c
|
@ -35,6 +35,7 @@ xcb_init(void)
|
|||
return false;
|
||||
}
|
||||
|
||||
#if defined(LOG_ENABLE_DBG) && LOG_ENABLE_DBG
|
||||
const xcb_setup_t *setup = xcb_get_setup(conn);
|
||||
|
||||
/* Vendor release number */
|
||||
|
@ -42,8 +43,9 @@ xcb_init(void)
|
|||
unsigned major = release / 10000000; release %= 10000000;
|
||||
unsigned minor = release / 100000; release %= 100000;
|
||||
unsigned patch = release / 1000;
|
||||
#endif
|
||||
|
||||
LOG_INFO("%.*s %u.%u.%u (protocol: %u.%u)",
|
||||
LOG_DBG("%.*s %u.%u.%u (protocol: %u.%u)",
|
||||
xcb_setup_vendor_length(setup), xcb_setup_vendor(setup),
|
||||
major, minor, patch,
|
||||
setup->protocol_major_version,
|
||||
|
@ -95,9 +97,9 @@ xcb_init(void)
|
|||
return false;
|
||||
}
|
||||
|
||||
LOG_INFO("RANDR: %u.%u",
|
||||
LOG_DBG("RANDR: %u.%u",
|
||||
randr_version->major_version, randr_version->minor_version);
|
||||
LOG_INFO("RENDER: %u.%u",
|
||||
LOG_DBG("RENDER: %u.%u",
|
||||
render_version->major_version, render_version->minor_version);
|
||||
|
||||
free(randr_version);
|
||||
|
|
Loading…
Add table
Reference in a new issue