fix some printf arguments

This commit is contained in:
Wim Taymans 2022-07-18 15:39:06 +02:00
parent 67754ad3bc
commit aaeafa49c1
4 changed files with 5 additions and 5 deletions

View file

@ -210,7 +210,7 @@ static int update_property(struct client *c,
pthread_mutex_unlock(&globals.lock); pthread_mutex_unlock(&globals.lock);
if (c->property_callback && changed > 0) { if (c->property_callback && changed > 0) {
pw_log_info("emit %lu %s", subject, key); pw_log_info("emit %"PRIu64" %s", (uint64_t)subject, key);
c->property_callback(subject, key, change, c->property_arg); c->property_callback(subject, key, change, c->property_arg);
} }
return changed; return changed;

View file

@ -227,7 +227,7 @@ static int setup_socket(struct server *server)
if (fd < 0) if (fd < 0)
return fd; return fd;
pw_log_info("%lx %d", server->entity_id, server->ifindex); pw_log_info("0x%"PRIx64" %d", server->entity_id, server->ifindex);
server->source = pw_loop_add_io(impl->loop, fd, SPA_IO_IN, true, on_socket_data, server); server->source = pw_loop_add_io(impl->loop, fd, SPA_IO_IN, true, on_socket_data, server);
if (server->source == NULL) { if (server->source == NULL) {

View file

@ -419,7 +419,7 @@ struct avb_maap *avb_maap_register(struct server *server)
} }
maap->server = server; maap->server = server;
pw_log_info("%lx %d", server->entity_id, server->ifindex); pw_log_info("0x%"PRIx64" %d", server->entity_id, server->ifindex);
pw_getrandom(maap->xsubi, sizeof(maap->xsubi), 0); pw_getrandom(maap->xsubi, sizeof(maap->xsubi), 0);
load_state(maap); load_state(maap);

View file

@ -599,8 +599,8 @@ static int set_rlimit(struct impl *impl)
rttime = pw_rtkit_get_rttime_usec_max(impl->system_bus); rttime = pw_rtkit_get_rttime_usec_max(impl->system_bus);
if (rttime >= 0) { if (rttime >= 0) {
if ((rlim_t)rttime < rl.rlim_cur) { if ((rlim_t)rttime < rl.rlim_cur) {
pw_log_debug("clamping rt.time.soft from %ld to %lld because of RTKit", pw_log_debug("clamping rt.time.soft from %llu to %lld because of RTKit",
rl.rlim_cur, rttime); (long long)rl.rlim_cur, rttime);
} }
rl.rlim_cur = SPA_MIN(rl.rlim_cur, (rlim_t)rttime); rl.rlim_cur = SPA_MIN(rl.rlim_cur, (rlim_t)rttime);