Skip to contentSkip to conversation

9p queue 2025-07-16

GIT PULL Applied Christian Schoenebeck 2 participants 4 messages Jul 16, 2025 – Jul 17, 2025

lore
Share & tools
lore
#0 lore raw

The following changes since commit c079d3a31e45093286c65f8ca5350beb3a4404a9:

Merge tag 'pull-10.1-rc0-maintainer-140725-1' of https://gitlab.com/stsquad/qemu into staging (2025-07-15 00:12:07 -0400)

are available in the Git repository at:

https://github.com/cschoenebeck/qemu.git tags/pull-9p-20250716

for you to fetch changes up to 44f51c1a3cf435daa82eb757740b59b1fd4fe71c:

hw/9pfs: move G_GNUC_PRINTF to header (2025-07-16 14:18:48 +0200)

----------------------------------------------------------------
9pfs changes:

* Tightens printf-style format checks. No behaviour change.

----------------------------------------------------------------
Sean Wei (2):
fsdev/9p-marshal: move G_GNUC_PRINTF to header hw/9pfs: move G_GNUC_PRINTF to header

 fsdev/9p-marshal.c | 3 +--
 fsdev/9p-marshal.h | 3 ++-
 hw/9pfs/9p.c       | 3 +--
 hw/9pfs/9p.h       | 3 ++-
 4 files changed, 6 insertions(+), 6 deletions(-)
#1 lore raw

[PULL 2/2] hw/9pfs: move G_GNUC_PRINTF to header

From: Sean Wei <[email protected]>

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.

Message-ID: <[email protected]>

[CS: fix code style (max. 80 chars per line)]
---
 hw/9pfs/9p.c | 3 +--
 hw/9pfs/9p.h | 3 ++-
 2 files changed, 3 insertions(+), 3 deletions(-)
hw/9pfs/9p.c +1 -2
index 8b001b9112..acfa7db4e1 100644
@@ -201,8 +201,7 @@ void v9fs_path_free(V9fsPath *path)
 }
 
 
-void G_GNUC_PRINTF(2, 3)
-v9fs_path_sprintf(V9fsPath *path, const char *fmt, ...)
+void v9fs_path_sprintf(V9fsPath *path, const char *fmt, ...)
 {
     va_list ap;
 
hw/9pfs/9p.h +2 -1
index 259ad32ed1..65cc45e344 100644
@@ -456,7 +456,8 @@ static inline uint8_t v9fs_request_cancelled(V9fsPDU *pdu)
 void coroutine_fn v9fs_reclaim_fd(V9fsPDU *pdu);
 void v9fs_path_init(V9fsPath *path);
 void v9fs_path_free(V9fsPath *path);
-void v9fs_path_sprintf(V9fsPath *path, const char *fmt, ...);
+void G_GNUC_PRINTF(2, 3) v9fs_path_sprintf(V9fsPath *path, const char *fmt,
+                                           ...);
 void v9fs_path_copy(V9fsPath *dst, const V9fsPath *src);
 size_t v9fs_readdir_response_size(V9fsString *name);
 int v9fs_name_to_path(V9fsState *s, V9fsPath *dirpath,
Signature · 1 line
2.30.2
#2 lore raw

[PULL 1/2] fsdev/9p-marshal: move G_GNUC_PRINTF to header

In reply to Christian Schoenebeck

From: Sean Wei <[email protected]>

v9fs_string_sprintf() is annotated with G_GNUC_PRINTF(2, 3) in 9p-marshal.c, but the prototype in fsdev/9p-marshal.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.

Message-Id: <[email protected]>

[CS: fix code style (max. 80 chars per line)]
---
 fsdev/9p-marshal.c | 3 +--
 fsdev/9p-marshal.h | 3 ++-
 2 files changed, 3 insertions(+), 3 deletions(-)
fsdev/9p-marshal.c +1 -2
index f9b0336cd5..3455580703 100644
@@ -27,8 +27,7 @@ void v9fs_string_free(V9fsString *str)
     str->size = 0;
 }
 
-void G_GNUC_PRINTF(2, 3)
-v9fs_string_sprintf(V9fsString *str, const char *fmt, ...)
+void v9fs_string_sprintf(V9fsString *str, const char *fmt, ...)
 {
     va_list ap;
 
fsdev/9p-marshal.h +2 -1
index f1abbe151c..8995e42067 100644
@@ -76,7 +76,8 @@ static inline void v9fs_string_init(V9fsString *str)
     str->size = 0;
 }
 void v9fs_string_free(V9fsString *str);
-void v9fs_string_sprintf(V9fsString *str, const char *fmt, ...);
+void G_GNUC_PRINTF(2, 3) v9fs_string_sprintf(V9fsString *str, const char *fmt,
+                                             ...);
 void v9fs_string_copy(V9fsString *lhs, V9fsString *rhs);
 
 #endif
Signature · 1 line
2.30.2