]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
ldattach: add __format__ attribute
authorKarel Zak <kzak@redhat.com>
Fri, 18 Jun 2021 14:52:26 +0000 (16:52 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 18 Jun 2021 14:52:26 +0000 (16:52 +0200)
Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/ldattach.c

index baf7cd512a125cc62d7bc3ebc868797096ceb658..3c853f8292ecab02b0ec0cf90eb0bef74d04c7f1 100644 (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;