diff options
author | John Levon <john.levon@nutanix.com> | 2021-04-07 09:45:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-07 09:45:55 +0100 |
commit | ed6deba2b8a496e5c3047d3d46208109ac762e4b (patch) | |
tree | 3f4d5df13b26f98f0dacd7283b9af32de2885a78 /include | |
parent | 5db87e77d11bf60cdec904775f12bbfbf98765d3 (diff) | |
download | libvfio-user-ed6deba2b8a496e5c3047d3d46208109ac762e4b.zip libvfio-user-ed6deba2b8a496e5c3047d3d46208109ac762e4b.tar.gz libvfio-user-ed6deba2b8a496e5c3047d3d46208109ac762e4b.tar.bz2 |
mark vfu_log() with format attribute (#426)
Fix up all resulting fallout.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libvfio-user.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libvfio-user.h b/include/libvfio-user.h index 97618a8..90dd21a 100644 --- a/include/libvfio-user.h +++ b/include/libvfio-user.h @@ -184,7 +184,8 @@ typedef void (vfu_log_fn_t)(vfu_ctx_t *vfu_ctx, int level, const char *msg); * Log to the logging function configured for this context. */ void -vfu_log(vfu_ctx_t *vfu_ctx, int level, const char *fmt, ...); +vfu_log(vfu_ctx_t *vfu_ctx, int level, const char *fmt, ...) \ + __attribute__((format(printf, 3, 4))); /** * Set up logging information. |