acpi: specify format for build_append_namestring

Will catch users if we misused it.
Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
Reviewed-by: NIgor Mammedov <imammedo@redhat.com>
上级 238d7497
无相关合并请求
...@@ -141,6 +141,7 @@ build_append_namestringv(GArray *array, const char *format, va_list ap) ...@@ -141,6 +141,7 @@ build_append_namestringv(GArray *array, const char *format, va_list ap)
g_strfreev(segs); g_strfreev(segs);
} }
GCC_FMT_ATTR(2, 3)
static void build_append_namestring(GArray *array, const char *format, ...) static void build_append_namestring(GArray *array, const char *format, ...)
{ {
va_list ap; va_list ap;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部