瀏覽代碼

[libc] Add missing __attribute__ (( format ( printf ) )) to ssnprintf()

tags/v0.9.4
Michael Brown 16 年之前
父節點
當前提交
7ad2f652b4
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      src/include/gpxe/vsprintf.h

+ 2
- 1
src/include/gpxe/vsprintf.h 查看文件

@@ -66,6 +66,7 @@ extern size_t vcprintf ( struct printf_context *ctx, const char *fmt,
66 66
 			 va_list args );
67 67
 extern int vssnprintf ( char *buf, ssize_t ssize, const char *fmt,
68 68
 			va_list args );
69
-extern int ssnprintf ( char *buf, ssize_t ssize, const char *fmt, ... );
69
+extern int __attribute__ (( format ( printf, 3, 4 ) ))
70
+ssnprintf ( char *buf, ssize_t ssize, const char *fmt, ... );
70 71
 
71 72
 #endif /* _GPXE_VSPRINTF_H */

Loading…
取消
儲存