From 0efa1826b0a58da8148ed31c1a20ed577f6e95a5 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 17 Jun 2010 17:44:29 +0000 Subject: [PATCH] Fixed a compiler warning. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1778 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_pres.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/scst_pres.c b/scst/src/scst_pres.c index 43013286e..a18757a21 100644 --- a/scst/src/scst_pres.c +++ b/scst/src/scst_pres.c @@ -2347,7 +2347,7 @@ void scst_pr_preempt_and_abort(struct scst_cmd *cmd, uint8_t *buffer, cmd->pr_abort_counter = kzalloc(sizeof(*cmd->pr_abort_counter), GFP_KERNEL); if (cmd->pr_abort_counter == NULL) { - PRINT_ERROR("Unable to allocate PR abort counter (size %d)", + PRINT_ERROR("Unable to allocate PR abort counter (size %zd)", sizeof(*cmd->pr_abort_counter)); scst_set_busy(cmd); goto out;