From: Aurélien Zanelli Date: Tue, 3 Feb 2015 15:12:32 +0000 (+0100) Subject: printf: handle unsigned modifier for long long X-Git-Tag: 1.6.1~493 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3da3e8df3e50d4cef1d0198aa620a9e78367d7f8;p=platform%2Fupstream%2Fgstreamer.git printf: handle unsigned modifier for long long Otherwise, an unsigned integer will be displayed as a signed one if we use internal print, ie HAVE_LONG_LONG_FORMAT is not defined. https://bugzilla.gnome.org/show_bug.cgi?id=746096 --- diff --git a/gst/printf/vasnprintf.c b/gst/printf/vasnprintf.c index 7f3d9e2..b40fc09 100644 --- a/gst/printf/vasnprintf.c +++ b/gst/printf/vasnprintf.c @@ -121,6 +121,11 @@ print_long_long (char *buf, digits = upper; negative = FALSE; break; + case 'u': + base = 10; + digits = lower; + negative = FALSE; + break; default: base = 10; digits = lower;