fix compiler warnings

This commit is contained in:
Wim Taymans 2020-05-08 20:40:02 +02:00
parent 729343f59b
commit e6ccc72feb
3 changed files with 5 additions and 5 deletions

View file

@ -225,7 +225,7 @@ int jack_set_property(jack_client_t*client,
if (type == NULL) if (type == NULL)
type = ""; type = "";
pw_log_info("set id:%u (%lu) '%s' to '%s@%s'", id, subject, key, value, type); pw_log_info("set id:%u (%"PRIu64") '%s' to '%s@%s'", id, subject, key, value, type);
pw_metadata_set_property(c->metadata->proxy, id, key, type, value); pw_metadata_set_property(c->metadata->proxy, id, key, type, value);
res = 0; res = 0;
done: done:
@ -334,7 +334,7 @@ int jack_remove_property (jack_client_t* client, jack_uuid_t subject, const char
id = jack_uuid_to_index(subject); id = jack_uuid_to_index(subject);
pw_log_info("remove id:%u (%lu) '%s'", id, subject, key); pw_log_info("remove id:%u (%"PRIu64") '%s'", id, subject, key);
pw_metadata_set_property(c->metadata->proxy, pw_metadata_set_property(c->metadata->proxy,
id, key, NULL, NULL); id, key, NULL, NULL);
res = 0; res = 0;
@ -359,7 +359,7 @@ int jack_remove_properties (jack_client_t* client, jack_uuid_t subject)
id = jack_uuid_to_index(subject); id = jack_uuid_to_index(subject);
pw_log_info("remove id:%u (%lu)", id, subject); pw_log_info("remove id:%u (%"PRIu64")", id, subject);
pw_metadata_set_property(c->metadata->proxy, pw_metadata_set_property(c->metadata->proxy,
id, NULL, NULL, NULL); id, NULL, NULL, NULL);
res = 0; res = 0;

View file

@ -847,7 +847,7 @@ static void process_tee(struct client *c, uint32_t frames)
static inline void debug_position(struct client *c, jack_position_t *p) static inline void debug_position(struct client *c, jack_position_t *p)
{ {
pw_log_trace("usecs: %lu", p->usecs); pw_log_trace("usecs: %"PRIu64, p->usecs);
pw_log_trace("frame_rate: %u", p->frame_rate); pw_log_trace("frame_rate: %u", p->frame_rate);
pw_log_trace("frame: %u", p->frame); pw_log_trace("frame: %u", p->frame);
pw_log_trace("valid: %08x", p->valid); pw_log_trace("valid: %08x", p->valid);

View file

@ -1348,7 +1348,7 @@ size_t pa_stream_writable_size(PA_CONST pa_stream *s)
queued -= SPA_MIN(queued, elapsed); queued -= SPA_MIN(queued, elapsed);
writable = s->maxblock - SPA_MIN(queued, s->maxblock); writable = s->maxblock - SPA_MIN(queued, s->maxblock);
pw_log_debug("stream %p: %lu", s, writable); pw_log_debug("stream %p: %"PRIu64, s, writable);
return writable; return writable;
} }