Skip to content

Commit

Permalink
Merge branch 'for-5.5/hidraw' into for-linus
Browse files Browse the repository at this point in the history
- printk() -> pr_*() cleanup (Rishi Gupta)
  • Loading branch information
Jiri Kosina committed Nov 29, 2019
2 parents b746a1a + b05cec6 commit 09f5429
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/hid/hidraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,15 @@ static ssize_t hidraw_get_report(struct file *file, char __user *buffer, size_t
}

if (count > HID_MAX_BUFFER_SIZE) {
printk(KERN_WARNING "hidraw: pid %d passed too large report\n",
task_pid_nr(current));
hid_warn(dev, "pid %d passed too large report\n",
task_pid_nr(current));
ret = -EINVAL;
goto out;
}

if (count < 2) {
printk(KERN_WARNING "hidraw: pid %d passed too short report\n",
task_pid_nr(current));
hid_warn(dev, "pid %d passed too short report\n",
task_pid_nr(current));
ret = -EINVAL;
goto out;
}
Expand Down Expand Up @@ -597,7 +597,7 @@ int __init hidraw_init(void)
if (result < 0)
goto error_class;

printk(KERN_INFO "hidraw: raw HID events driver (C) Jiri Kosina\n");
pr_info("raw HID events driver (C) Jiri Kosina\n");
out:
return result;

Expand Down

0 comments on commit 09f5429

Please sign in to comment.