diff --git a/ChangeLog b/ChangeLog index 79ac222fe..feeea672c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2012-02-10 Vladimir Serbinenko + + * include/grub/emu/misc.h (grub_util_warn): Add missing format + attribute. + (grub_util_info): Likewise. + (grub_util_error): Likewise. + 2012-02-10 Vladimir Serbinenko * util/grub-mount.c (fuse_init): Avoid improper use of strings. diff --git a/include/grub/emu/misc.h b/include/grub/emu/misc.h index 7c4652004..6423eb963 100644 --- a/include/grub/emu/misc.h +++ b/include/grub/emu/misc.h @@ -62,9 +62,9 @@ void * EXPORT_FUNC(xrealloc) (void *ptr, grub_size_t size) __attribute__ ((warn_ char * EXPORT_FUNC(xstrdup) (const char *str) __attribute__ ((warn_unused_result)); char * EXPORT_FUNC(xasprintf) (const char *fmt, ...) __attribute__ ((format (printf, 1, 2))) __attribute__ ((warn_unused_result)); -void EXPORT_FUNC(grub_util_warn) (const char *fmt, ...); -void EXPORT_FUNC(grub_util_info) (const char *fmt, ...); -void EXPORT_FUNC(grub_util_error) (const char *fmt, ...) __attribute__ ((noreturn)); +void EXPORT_FUNC(grub_util_warn) (const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); +void EXPORT_FUNC(grub_util_info) (const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); +void EXPORT_FUNC(grub_util_error) (const char *fmt, ...) __attribute__ ((format (printf, 1, 2), noreturn)); #ifndef HAVE_VASPRINTF int EXPORT_FUNC(vasprintf) (char **buf, const char *fmt, va_list ap);