[media] gl860: Use current logging styles
authorJoe Perches <joe@perches.com>
Sun, 21 Aug 2011 22:56:51 +0000 (19:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 4 Sep 2011 00:12:17 +0000 (21:12 -0300)
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>
drivers/media/video/gspca/gl860/gl860.c

index e8e071aa212f4ac23514ac32c83327c4a2e0519e..2ced3b73994fed758bd126e9a55efc6d1ce2bdde 100644 (file)
@@ -18,6 +18,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
+
+#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);