]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] fix compiler warning in microcode driver
authorTigran Aivazian <tigran@aivazian.name>
Tue, 16 Apr 2002 06:32:38 +0000 (23:32 -0700)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Tue, 16 Apr 2002 06:32:38 +0000 (23:32 -0700)
The obvious patch to fix compiler warning when compiled with RH gcc 2.96
(and probably others too).

arch/i386/kernel/microcode.c

index 40da258a929d3fc0e06512d0147f182744ac3578..61d4fadedc7ad96af0b9f971987e2f4e763711ac 100644 (file)
@@ -338,7 +338,7 @@ static ssize_t microcode_write(struct file *file, const char *buf, size_t len, l
                return -EINVAL;
        }
        if ((len >> PAGE_SHIFT) > num_physpages) {
-               printk(KERN_ERR "microcode: too much data (max %d pages)\n", num_physpages);
+               printk(KERN_ERR "microcode: too much data (max %ld pages)\n", num_physpages);
                return -EINVAL;
        }
        down_write(&microcode_rwsem);