From: Karel Zak Date: Fri, 18 Jun 2021 14:52:26 +0000 (+0200) Subject: ldattach: add __format__ attribute X-Git-Tag: v2.38-rc1~427 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c7da26744223f78fe938361b4d2c9eee97b8a1d1;p=thirdparty%2Futil-linux.git ldattach: add __format__ attribute Reported-by: Jan Pazdziora Signed-off-by: Karel Zak --- diff --git a/sys-utils/ldattach.c b/sys-utils/ldattach.c index baf7cd512a..3c853f8292 100644 --- a/sys-utils/ldattach.c +++ b/sys-utils/ldattach.c @@ -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;