Commit 9eacb89f authored by Tigran Aivazian's avatar Tigran Aivazian Committed by Linus Torvalds

[PATCH] fix compiler warning in microcode driver

The obvious patch to fix compiler warning when compiled with RH gcc 2.96
(and probably others too).
parent 917b3bd7
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment