]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* include/grub/misc.h (grub_dprintf): Use unnamed vararg.
authorVladimir Serbinenko <phcoder@gmail.com>
Thu, 7 Nov 2013 00:23:06 +0000 (01:23 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Thu, 7 Nov 2013 00:23:06 +0000 (01:23 +0100)
(grub_boot_time): Likewise.

ChangeLog
include/grub/misc.h

index fd60875f0cf269e3e5910f37aed553eae28bd88d..cb5cc77127790c022160b41c6a0df09e15e99767 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
+       (grub_boot_time): Likewise.
+
 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * include/grub/symbol.h (FUNCTION): Use @function rather than
index bed97600fa13bb4918c4a63c7caf1f56f8cded9e..958372469893862fe3ef07c15c158a98ef1718d0 100644 (file)
@@ -62,7 +62,7 @@
 #define ARRAY_SIZE(array) (sizeof (array) / sizeof (array[0]))
 #define COMPILE_TIME_ASSERT(cond) switch (0) { case 1: case !(cond): ; }
 
-#define grub_dprintf(condition, fmt, args...) grub_real_dprintf(GRUB_FILE, __LINE__, condition, fmt, ## args)
+#define grub_dprintf(condition, ...) grub_real_dprintf(GRUB_FILE, __LINE__, condition, __VA_ARGS__)
 
 void *EXPORT_FUNC(grub_memmove) (void *dest, const void *src, grub_size_t n);
 char *EXPORT_FUNC(grub_strcpy) (char *dest, const char *src);
@@ -464,9 +464,9 @@ extern struct grub_boot_time *EXPORT_VAR(grub_boot_time_head);
 void EXPORT_FUNC(grub_real_boot_time) (const char *file,
                                       const int line,
                                       const char *fmt, ...) __attribute__ ((format (GNU_PRINTF, 3, 4)));
-#define grub_boot_time(fmt, args...) grub_real_boot_time(GRUB_FILE, __LINE__, fmt, ## args)
+#define grub_boot_time(...) grub_real_boot_time(GRUB_FILE, __LINE__, __VA_ARGS__)
 #else
-#define grub_boot_time(fmt, args...) 
+#define grub_boot_time(...)
 #endif
 
 #define grub_max(a, b) (((a) > (b)) ? (a) : (b))