[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>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
857011e4d9
commit
d650fc30c0
@@ -18,6 +18,9 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||||
|
|
||||||
#include "gspca.h"
|
#include "gspca.h"
|
||||||
#include "gl860.h"
|
#include "gl860.h"
|
||||||
|
|
||||||
@@ -572,8 +575,7 @@ int gl860_RTx(struct gspca_dev *gspca_dev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
err("ctrl transfer failed %4d "
|
pr_err("ctrl transfer failed %4d [p%02x r%d v%04x i%04x len%d]\n",
|
||||||
"[p%02x r%d v%04x i%04x len%d]",
|
|
||||||
r, pref, req, val, index, len);
|
r, pref, req, val, index, len);
|
||||||
else if (len > 1 && r < len)
|
else if (len > 1 && r < len)
|
||||||
PDEBUG(D_ERR, "short ctrl transfer %d/%d", r, len);
|
PDEBUG(D_ERR, "short ctrl transfer %d/%d", r, len);
|
||||||
|
Reference in New Issue
Block a user