···88 * the Free Software Foundation.99 */10101111+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt1212+1113#define EVDEV_MINOR_BASE 641214#define EVDEV_MINORS 321315#define EVDEV_MIN_BUFFER_SIZE 64U···524522 if (type == EV_KEY && size == OLD_KEY_MAX) {525523 len = OLD_KEY_MAX;526524 if (printk_timed_ratelimit(&keymax_warn_time, 10 * 1000))527527- printk(KERN_WARNING528528- "evdev.c(EVIOCGBIT): Suspicious buffer size %u, "529529- "limiting output to %zu bytes. See "530530- "http://userweb.kernel.org/~dtor/eviocgbit-bug.html\n",531531- OLD_KEY_MAX,532532- BITS_TO_LONGS(OLD_KEY_MAX) * sizeof(long));525525+ pr_warning("(EVIOCGBIT): Suspicious buffer size %u, "526526+ "limiting output to %zu bytes. See "527527+ "http://userweb.kernel.org/~dtor/eviocgbit-bug.html\n",528528+ OLD_KEY_MAX,529529+ BITS_TO_LONGS(OLD_KEY_MAX) * sizeof(long));533530 }534531535532 return bits_to_user(bits, len, size, p, compat_mode);···895894 break;896895897896 if (minor == EVDEV_MINORS) {898898- printk(KERN_ERR "evdev: no more free evdev devices\n");897897+ pr_err("no more free evdev devices\n");899898 return -ENFILE;900899 }901900
+5-6
drivers/input/ff-core.c
···23232424/* #define DEBUG */25252626-#define debug(format, arg...) pr_debug("ff-core: " format "\n", ## arg)2626+#define pr_fmt(fmt) KBUILD_BASENAME ": " fmt27272828#include <linux/input.h>2929#include <linux/module.h>···116116117117 if (effect->type < FF_EFFECT_MIN || effect->type > FF_EFFECT_MAX ||118118 !test_bit(effect->type, dev->ffbit)) {119119- debug("invalid or not supported effect type in upload");119119+ pr_debug("invalid or not supported effect type in upload\n");120120 return -EINVAL;121121 }122122···124124 (effect->u.periodic.waveform < FF_WAVEFORM_MIN ||125125 effect->u.periodic.waveform > FF_WAVEFORM_MAX ||126126 !test_bit(effect->u.periodic.waveform, dev->ffbit))) {127127- debug("invalid or not supported wave form in upload");127127+ pr_debug("invalid or not supported wave form in upload\n");128128 return -EINVAL;129129 }130130···246246 struct ff_device *ff = dev->ff;247247 int i;248248249249- debug("flushing now");249249+ pr_debug("flushing now\n");250250251251 mutex_lock(&ff->mutex);252252···315315 int i;316316317317 if (!max_effects) {318318- printk(KERN_ERR319319- "ff-core: cannot allocate device without any effects\n");318318+ pr_err("cannot allocate device without any effects\n");320319 return -EINVAL;321320 }322321