ldattach: add __format__ attribute

Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2021-06-18 16:52:26 +02:00
parent 365e006a36
commit c7da267442
1 changed files with 2 additions and 1 deletions

View File

@ -130,7 +130,8 @@ static const struct ld_table ld_iflags[] =
{ NULL, 0 }
};
static void dbg(char *fmt, ...)
static void __attribute__((__format__ (__printf__, 1, 2)))
dbg(char *fmt, ...)
{
va_list args;