block, char_dev: Use correct format specifier for unsigned ints
[linux-2.6-block.git] / fs / char_dev.c
index 33c93854216023143ba7310ddc68a2ac11314904..a279c58fe3606224df4c7c441090ed07f98d15b9 100644 (file)
@@ -121,8 +121,8 @@ __register_chrdev_region(unsigned int major, unsigned int baseminor,
        }
 
        if (major >= CHRDEV_MAJOR_MAX) {
-               pr_err("CHRDEV \"%s\" major requested (%d) is greater than the maximum (%d)\n",
-                      name, major, CHRDEV_MAJOR_MAX);
+               pr_err("CHRDEV \"%s\" major requested (%u) is greater than the maximum (%u)\n",
+                      name, major, CHRDEV_MAJOR_MAX-1);
                ret = -EINVAL;
                goto out;
        }