From: Joe Perches Date: Sun, 21 Aug 2011 22:56:51 +0000 (-0300) Subject: [media] gl860: Use current logging styles X-Git-Tag: MMI-PSA29.97-13-9~18177^2~248 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d650fc30c0328eceb0e48f348e01e073b5a7f1f6;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [media] gl860: Use current logging styles Add pr_fmt. Convert err macro use to pr_err. Signed-off-by: Joe Perches Signed-off-by: Mauro Carvalho Chehab --- 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 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include "gspca.h" #include "gl860.h" @@ -572,9 +575,8 @@ int gl860_RTx(struct gspca_dev *gspca_dev, } if (r < 0) - err("ctrl transfer failed %4d " - "[p%02x r%d v%04x i%04x len%d]", - r, pref, req, val, index, len); + pr_err("ctrl transfer failed %4d [p%02x r%d v%04x i%04x len%d]\n", + r, pref, req, val, index, len); else if (len > 1 && r < len) PDEBUG(D_ERR, "short ctrl transfer %d/%d", r, len);