diff --git a/eeshow/fmt-pango.c b/eeshow/fmt-pango.c index bdf1088..d877b61 100644 --- a/eeshow/fmt-pango.c +++ b/eeshow/fmt-pango.c @@ -102,6 +102,12 @@ unsigned vsfmt_pango(char *buf, const char *fmt, va_list ap) memcpy(res, tmp, len); res += len; break; + case 'u': + len = asprintf(&tmp, tmp_fmt, va_arg(ap, unsigned)); + if (buf) + memcpy(res, tmp, len); + res += len; + break; case '%': if (buf) *res = '%'; diff --git a/eeshow/fmt-pango.h b/eeshow/fmt-pango.h index 5cf2416..43628e4 100644 --- a/eeshow/fmt-pango.h +++ b/eeshow/fmt-pango.h @@ -19,6 +19,7 @@ unsigned vsfmt_pango(char *buf, const char *fmt, va_list ap); char *vfmt_pango(const char *fmt, va_list ap); -char *fmt_pango(const char *fmt, ...); +char *fmt_pango(const char *fmt, ...) + __attribute__((format(printf, 1, 2))); #endif /* !FMT_PANGO_H */