Skip to content

Commit

Permalink
ringbuffer: fix qb_rb_open_2() debug format string
Browse files Browse the repository at this point in the history
qb_log_target_formats() does not support formatting size_t values with
%zd.  Use %ld to format them as long integers instead.
  • Loading branch information
Michael Chapman committed Jun 5, 2014
1 parent f8b4a1b commit edd2eec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ringbuffer.c
Expand Up @@ -232,7 +232,7 @@ qb_rb_open_2(const char *name, size_t size, uint32_t flags,
}

qb_util_log(LOG_DEBUG,
"shm size:%zd; real_size:%zd; rb->word_size:%d", size,
"shm size:%ld; real_size:%ld; rb->word_size:%d", size,
real_size, rb->shared_hdr->word_size);

/* this function closes fd_data */
Expand Down

0 comments on commit edd2eec

Please sign in to comment.