anv: add a couple printflike() annotations
authorEric Engestrom <eric.engestrom@intel.com>
Thu, 24 Oct 2019 12:29:37 +0000 (13:29 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Mon, 28 Oct 2019 23:17:16 +0000 (23:17 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/intel/vulkan/anv_private.h

index fc809f6ac733ef7ce9ea229f8e27cfc4ee4e4927..2f97bf57cf38e20f5ddb20862aa3d3427207d517 100644 (file)
@@ -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__)