Skip to content
Commit b7efeb08 authored by Peng Jiang's avatar Peng Jiang Committed by Juergen Gross
Browse files

xen/xenbus: fix W=1 build warning in xenbus_va_dev_error function



This patch fixes a W=1 format-string warning reported by GCC 12.3.0
by annotating xenbus_switch_fatal() and xenbus_va_dev_error()
with the __printf attribute. The attribute enables compile-time
validation of printf-style format strings in these functions.

The original warning trace:
drivers/xen/xenbus/xenbus_client.c:304:9: warning: function 'xenbus_va_dev_error' might be
a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]

Signed-off-by: default avatarPeng Jiang <jiang.peng9@zte.com.cn>
Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
Message-ID: <20250620084104786r5xoR16_AmYZMJLnno3_Q@zte.com.cn>
Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
parent 347e9f50
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment