Skip to contentSkip to conversation

HACKING: Update status of format checking

PATCH Applied Stefan Weil 2 participants 2 messages Feb 25, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HACKING: Update status of format checking

This patch was already sent on 2011-01-24:

Hopefully all functions with printf like arguments now use format checking.

This was tested with default build configuration on linux and windows hosts (including some cross compilations), so chances are good that there remain few (if any) functions without format checking.

Therefore the last comment in HACKING is no longer valid but misleading.

---
 HACKING |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
HACKING +0 -3
index 6ba9d7e..3af53fd 100644
@@ -120,6 +120,3 @@ gcc's printf attribute directive in the prototype.
 This makes it so gcc's -Wformat and -Wformat-security options can do
 their jobs and cross-check format strings with the number and types
 of arguments.
-
-Currently many functions in QEMU are not following this rule but
-patches to add the attribute would be very much appreciated.
Signature · 1 line
1.7.2.3
#1 lore raw
Quoted 9 lines · Stefan Weil

This patch was already sent on 2011-01-24:

Hopefully all functions with printf like arguments now use format checking.

This was tested with default build configuration on linux and windows hosts (including some cross compilations), so chances are good that there remain few (if any) functions without format checking.

Quoted 4 lines

Therefore the last comment in HACKING is no longer valid but misleading.

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 15 lines
---
 HACKING |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
HACKING +0 -3
index 6ba9d7e..3af53fd 100644
@@ -120,6 +120,3 @@ gcc's printf attribute directive in the prototype.
 This makes it so gcc's -Wformat and -Wformat-security options can do
 their jobs and cross-check format strings with the number and types
 of arguments.
-
-Currently many functions in QEMU are not following this rule but
-patches to add the attribute would be very much appreciated.