mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-30 06:46:49 -04:00
core: use %u format specifier for uint32_t IDs
The object, node, client, factory, module, and link IDs are all uint32_t values but were being formatted with %d. This would produce incorrect negative values if an ID ever exceeded INT_MAX
This commit is contained in:
parent
35cbd2e56a
commit
b4457b871f
26 changed files with 51 additions and 51 deletions
|
|
@ -559,7 +559,7 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
|||
free(impl);
|
||||
return -errno;
|
||||
}
|
||||
pw_properties_setf(impl->properties, PW_KEY_OBJECT_ID, "%d", pw_global_get_id(impl->global));
|
||||
pw_properties_setf(impl->properties, PW_KEY_OBJECT_ID, "%u", pw_global_get_id(impl->global));
|
||||
pw_properties_setf(impl->properties, PW_KEY_OBJECT_SERIAL, "%"PRIu64,
|
||||
pw_global_get_serial(impl->global));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue