summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-10-24 13:29:37 +0100
committerEric Engestrom <[email protected]>2019-10-28 23:17:16 +0000
commitea8116908ce7ecb610f68d1333352258c2bfc00a (patch)
treef1582aa7ef1945b7f0dba043a75cd17240beb3bc /src/intel/vulkan
parent21b7f79a76923359237cbdbdfe6d1ffede4a34e4 (diff)
anv: add a couple printflike() annotations
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r--src/intel/vulkan/anv_private.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index fc809f6ac73..2f97bf57cf3 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -410,7 +410,8 @@ VkResult __vk_errorv(struct anv_instance *instance, const void *object,
VkResult __vk_errorf(struct anv_instance *instance, const void *object,
VkDebugReportObjectTypeEXT type, VkResult error,
- const char *file, int line, const char *format, ...);
+ const char *file, int line, const char *format, ...)
+ anv_printflike(7, 8);
#ifdef DEBUG
#define vk_error(error) __vk_errorf(NULL, NULL,\
@@ -1216,7 +1217,8 @@ void anv_device_finish_blorp(struct anv_device *device);
VkResult _anv_device_set_lost(struct anv_device *device,
const char *file, int line,
- const char *msg, ...);
+ const char *msg, ...)
+ anv_printflike(4, 5);
#define anv_device_set_lost(dev, ...) \
_anv_device_set_lost(dev, __FILE__, __LINE__, __VA_ARGS__)