]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/9pfs: move G_GNUC_PRINTF to header
authorSean Wei <me@sean.taipei>
Sat, 14 Jun 2025 02:09:20 +0000 (22:09 -0400)
committerChristian Schoenebeck <qemu_oss@crudebyte.com>
Wed, 16 Jul 2025 12:18:48 +0000 (14:18 +0200)
commit44f51c1a3cf435daa82eb757740b59b1fd4fe71c
tree5ef3327f76081a0fc926e75667a36ba94c029cda
parent44b540338a3e271866a3d636359bfe6b2edecbb6
hw/9pfs: move G_GNUC_PRINTF to header

v9fs_path_sprintf() is annotated with G_GNUC_PRINTF(2, 3) in
hw/9pfs/9p.c, but the prototype in hw/9pfs/9p.h is missing the
attribute, so callers that include only the header do not get format
checking.

Move the annotation to the header and delete the duplicate in the
source file. No behavior change.

Signed-off-by: Sean Wei <me@sean.taipei>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250613.qemu.9p.02@sean.taipei>
[CS: fix code style (max. 80 chars per line)]
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
hw/9pfs/9p.c
hw/9pfs/9p.h