From 0bf9b6389c3c1b3e39188c99b80d7fd118dc5feb Mon Sep 17 00:00:00 2001 From: Arne Redlich Date: Fri, 2 Nov 2012 21:11:30 +0100 Subject: [PATCH] Annotate iscsi_set_error with printf format attribute Signed-off-by: Arne Redlich --- include/iscsi-private.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/iscsi-private.h b/include/iscsi-private.h index 5c9b15a..5f71613 100644 --- a/include/iscsi-private.h +++ b/include/iscsi-private.h @@ -86,7 +86,7 @@ struct iscsi_context { int fd; int is_connected; - + int tcp_user_timeout; int tcp_keepcnt; int tcp_keepintvl; @@ -272,7 +272,7 @@ int iscsi_process_reject(struct iscsi_context *iscsi, int iscsi_send_target_nop_out(struct iscsi_context *iscsi, uint32_t ttt); void iscsi_set_error(struct iscsi_context *iscsi, const char *error_string, - ...); + ...) __attribute__((format(printf, 2, 3))); unsigned char *iscsi_get_user_in_buffer(struct iscsi_context *iscsi, struct iscsi_in_pdu *in, uint32_t pos, ssize_t *count); unsigned char *scsi_task_get_data_in_buffer(struct scsi_task *task, uint32_t pos, ssize_t *count); @@ -289,4 +289,3 @@ void iscsi_set_noautoreconnect(struct iscsi_context *iscsi, int state); #endif #endif /* __iscsi_private_h__ */ -