diff options
author | Joe Perches <joe@perches.com> | 2011-08-21 18:56:51 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-09-03 20:12:17 -0400 |
commit | d650fc30c0328eceb0e48f348e01e073b5a7f1f6 (patch) | |
tree | 06b30224ec517307f515e826cd060db699c65e1f /drivers | |
parent | 857011e4d9bf47b39abcc89541a58c56e4df34be (diff) |
[media] gl860: Use current logging styles
Add pr_fmt.
Convert err macro use to pr_err.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/gspca/gl860/gl860.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/media/video/gspca/gl860/gl860.c b/drivers/media/video/gspca/gl860/gl860.c index e8e071aa212f..2ced3b73994f 100644 --- a/drivers/media/video/gspca/gl860/gl860.c +++ b/drivers/media/video/gspca/gl860/gl860.c | |||
@@ -18,6 +18,9 @@ | |||
18 | * You should have received a copy of the GNU General Public License | 18 | * You should have received a copy of the GNU General Public License |
19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
20 | */ | 20 | */ |
21 | |||
22 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
23 | |||
21 | #include "gspca.h" | 24 | #include "gspca.h" |
22 | #include "gl860.h" | 25 | #include "gl860.h" |
23 | 26 | ||
@@ -572,9 +575,8 @@ int gl860_RTx(struct gspca_dev *gspca_dev, | |||
572 | } | 575 | } |
573 | 576 | ||
574 | if (r < 0) | 577 | if (r < 0) |
575 | err("ctrl transfer failed %4d " | 578 | pr_err("ctrl transfer failed %4d [p%02x r%d v%04x i%04x len%d]\n", |
576 | "[p%02x r%d v%04x i%04x len%d]", | 579 | r, pref, req, val, index, len); |
577 | r, pref, req, val, index, len); | ||
578 | else if (len > 1 && r < len) | 580 | else if (len > 1 && r < len) |
579 | PDEBUG(D_ERR, "short ctrl transfer %d/%d", r, len); | 581 | PDEBUG(D_ERR, "short ctrl transfer %d/%d", r, len); |
580 | 582 | ||