mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-25 05:15:41 +02:00
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
20
xcb.c
20
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,12 +43,13 @@ 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)",
|
||||
xcb_setup_vendor_length(setup), xcb_setup_vendor(setup),
|
||||
major, minor, patch,
|
||||
setup->protocol_major_version,
|
||||
setup->protocol_minor_version);
|
||||
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,
|
||||
setup->protocol_minor_version);
|
||||
|
||||
const xcb_query_extension_reply_t *randr =
|
||||
xcb_get_extension_data(conn, &xcb_randr_id);
|
||||
|
@ -95,10 +97,10 @@ xcb_init(void)
|
|||
return false;
|
||||
}
|
||||
|
||||
LOG_INFO("RANDR: %u.%u",
|
||||
randr_version->major_version, randr_version->minor_version);
|
||||
LOG_INFO("RENDER: %u.%u",
|
||||
render_version->major_version, render_version->minor_version);
|
||||
LOG_DBG("RANDR: %u.%u",
|
||||
randr_version->major_version, randr_version->minor_version);
|
||||
LOG_DBG("RENDER: %u.%u",
|
||||
render_version->major_version, render_version->minor_version);
|
||||
|
||||
free(randr_version);
|
||||
free(render_version);
|
||||
|
|
Loading…
Add table
Reference in a new issue