From patchwork Wed Sep 5 12:08:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 1409151 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 83471402E1 for ; Wed, 5 Sep 2012 12:08:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758727Ab2IEMIN (ORCPT ); Wed, 5 Sep 2012 08:08:13 -0400 Received: from mga09.intel.com ([134.134.136.24]:51661 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751864Ab2IEMIM (ORCPT ); Wed, 5 Sep 2012 08:08:12 -0400 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 05 Sep 2012 05:08:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.80,374,1344236400"; d="scan'208";a="189135710" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.62]) by orsmga001.jf.intel.com with ESMTP; 05 Sep 2012 05:08:09 -0700 Received: from andy by smile with local (Exim 4.80) (envelope-from ) id 1T9EPP-0007Dp-Fd; Wed, 05 Sep 2012 15:08:39 +0300 From: Andy Shevchenko To: Dmitry Torokhov , linux-input@vger.kernel.org Cc: Andy Shevchenko Subject: [PATCH] input: mouse: use %*ph to dump small buffer Date: Wed, 5 Sep 2012 15:08:38 +0300 Message-Id: <1346846918-27728-1-git-send-email-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 1.7.10.4 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Signed-off-by: Andy Shevchenko --- drivers/input/mouse/hgpk.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/input/mouse/hgpk.c b/drivers/input/mouse/hgpk.c index 575f880..5b17cc6 100644 --- a/drivers/input/mouse/hgpk.c +++ b/drivers/input/mouse/hgpk.c @@ -334,11 +334,8 @@ static bool hgpk_is_byte_valid(struct psmouse *psmouse, unsigned char *packet) if (!valid) psmouse_dbg(psmouse, - "bad data, mode %d (%d) %02x %02x %02x %02x %02x %02x\n", - priv->mode, pktcnt, - psmouse->packet[0], psmouse->packet[1], - psmouse->packet[2], psmouse->packet[3], - psmouse->packet[4], psmouse->packet[5]); + "bad data, mode %d (%d) %*ph\n", + priv->mode, pktcnt, 6, psmouse->packet); return valid; }