scanner.c: Use WL_PRINTF instead of __attribute__((format(printf)))

Submitted by Seedo Eldho Paul on Nov. 27, 2014, 3:20 p.m.

Details

Message ID 1417101614-9257-1-git-send-email-seedoeldhopaul@gmail.com
State Accepted
Commit 93e352d05808820664f8bcb362785d1861b78ccb
Headers show

Not browsing as part of any series.

Commit Message

Seedo Eldho Paul Nov. 27, 2014, 3:20 p.m.
Signed-off-by: Seedo Eldho Paul <seedoeldhopaul@gmail.com>
---
 src/scanner.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/src/scanner.c b/src/scanner.c
index fa8e0c0..ca03c57 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -199,7 +199,7 @@  static const char *indent(int n)
 }
 
 static void
-desc_dump(char *desc, const char *fmt, ...) __attribute__((format(printf,2,3)));
+desc_dump(char *desc, const char *fmt, ...) WL_PRINTF(2, 3);
 
 static void
 desc_dump(char *desc, const char *fmt, ...)

Comments

On Thu, 27 Nov 2014 20:50:14 +0530
Seedo Eldho Paul <seedoeldhopaul@gmail.com> wrote:

> Signed-off-by: Seedo Eldho Paul <seedoeldhopaul@gmail.com>
> ---
>  src/scanner.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/scanner.c b/src/scanner.c
> index fa8e0c0..ca03c57 100644
> --- a/src/scanner.c
> +++ b/src/scanner.c
> @@ -199,7 +199,7 @@ static const char *indent(int n)
>  }
>  
>  static void
> -desc_dump(char *desc, const char *fmt, ...) __attribute__((format(printf,2,3)));
> +desc_dump(char *desc, const char *fmt, ...) WL_PRINTF(2, 3);
>  
>  static void
>  desc_dump(char *desc, const char *fmt, ...)

Pushed, thanks,
pq