From 0f87f052aaf30a47ccd6da9e438d76b7502c7c0b Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Tue, 27 Oct 2009 13:12:33 +0000 Subject: [PATCH] Fix a compiler warning about a mismatch between a format specifier and the corresponding argument, noticed by Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1285 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/scst_sysfs.c b/scst/src/scst_sysfs.c index 730064b79..68a86dd27 100644 --- a/scst/src/scst_sysfs.c +++ b/scst/src/scst_sysfs.c @@ -1260,7 +1260,7 @@ static int scst_write_trace(const char *buf, size_t length, buffer = kmalloc(length+1, GFP_KERNEL); if (buffer == NULL) { - PRINT_ERROR("Unable to alloc intermediate buffer (size %d)", + PRINT_ERROR("Unable to alloc intermediate buffer (size %zd)", length+1); res = -ENOMEM; goto out;