mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
buffer: fix printf format
Use %u to print unsigned integers.
This commit is contained in:
parent
0723c86046
commit
8a4aed855a
1 changed files with 2 additions and 4 deletions
|
@ -283,8 +283,7 @@ _gst_buffer_copy (GstBuffer * buffer)
|
|||
if (G_LIKELY (buffer->size)) {
|
||||
if (G_UNLIKELY (!aligned_malloc (&memptr, buffer->size))) {
|
||||
/* terminate on error like g_memdup() would */
|
||||
g_error ("%s: failed to allocate %" G_GSIZE_FORMAT " bytes",
|
||||
G_STRLOC, buffer->size);
|
||||
g_error ("%s: failed to allocate %u bytes", G_STRLOC, buffer->size);
|
||||
} else {
|
||||
memcpy (memptr, buffer->data, buffer->size);
|
||||
}
|
||||
|
@ -369,8 +368,7 @@ gst_buffer_new_and_alloc (guint size)
|
|||
if (G_LIKELY (size)) {
|
||||
if (G_UNLIKELY (!aligned_malloc (&memptr, size))) {
|
||||
/* terminate on error like g_memdup() would */
|
||||
g_error ("%s: failed to allocate %" G_GSIZE_FORMAT " bytes",
|
||||
G_STRLOC, size);
|
||||
g_error ("%s: failed to allocate %u bytes", G_STRLOC, size);
|
||||
}
|
||||
}
|
||||
newbuf->malloc_data = (guint8 *) memptr;
|
||||
|
|
Loading…
Reference in a new issue