From patchwork Mon Apr 28 10:54:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masanari Iida X-Patchwork-Id: 4076481 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CE05E9FA15 for ; Mon, 28 Apr 2014 10:54:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 133ED202C8 for ; Mon, 28 Apr 2014 10:54:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2F0F820251 for ; Mon, 28 Apr 2014 10:54:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755199AbaD1Kyk (ORCPT ); Mon, 28 Apr 2014 06:54:40 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:43687 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754296AbaD1Kyg (ORCPT ); Mon, 28 Apr 2014 06:54:36 -0400 Received: by mail-pa0-f48.google.com with SMTP id hz1so5650331pad.21 for ; Mon, 28 Apr 2014 03:54:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=xZnDkjMze/yNYmwtZTqrxRKh4ihOKqaxyxDB0B20+Rs=; b=xc0WdkLXAV5RxP+6Sg2GpBycFsq2L6K4npPAt4VTi2f560Oh8gO2XmS9PGhp0wW28a VTrtlS2S/QXk14eahLycq9fPlhzr7YTxmQOHAI65+/sIQzDLrIqEGhQi4TjncGZjH10G 6uI9XrnxwCZuDy5lOu1+gIJkK7ynN16RyAM0LAHik/vMn+2EL6eJKscaCxP/vBWrBJY7 gQanltplyHkCXuZTbEGnqebHGF+WrDlFSoVfyVOubBSzh5Bd4ULkNWHaWbNHXIgoWASY Nmksse5r0W024f6o9u/XBf3eSo19NMmoH2EnaODWTNDVeGmvWJmCOaUJ1cqxXEWd12nw NfWA== X-Received: by 10.67.23.135 with SMTP id ia7mr24755535pad.5.1398682475691; Mon, 28 Apr 2014 03:54:35 -0700 (PDT) Received: from masabert (p406172-omed01.tokyo.ocn.ne.jp. [153.148.85.172]) by mx.google.com with ESMTPSA id yo9sm89624743pab.16.2014.04.28.03.54.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Apr 2014 03:54:34 -0700 (PDT) Received: by masabert (Postfix, from userid 1000) id 76C6D6279D; Mon, 28 Apr 2014 19:54:25 +0900 (JST) From: Masanari Iida To: plagnioj@jcrosoft.com, tomi.valkeinen@ti.com, linux-fbdev@vger.kernel.org, linux-omap@vger.kernel.org Cc: Masanari Iida Subject: [PATCH] fbdev: omap2: Fix format string mismatch in display-sysfs.c Date: Mon, 28 Apr 2014 19:54:15 +0900 Message-Id: <1398682455-21043-1-git-send-email-standby24x7@gmail.com> X-Mailer: git-send-email 2.0.0.rc1 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix two format string mismatch in display-sysfs.c Signed-off-by: Masanari Iida --- drivers/video/fbdev/omap2/dss/display-sysfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/omap2/dss/display-sysfs.c b/drivers/video/fbdev/omap2/dss/display-sysfs.c index 5a2095a..5928bc9 100644 --- a/drivers/video/fbdev/omap2/dss/display-sysfs.c +++ b/drivers/video/fbdev/omap2/dss/display-sysfs.c @@ -184,7 +184,7 @@ static ssize_t display_rotate_show(struct device *dev, if (!dssdev->driver->get_rotate) return -ENOENT; rotate = dssdev->driver->get_rotate(dssdev); - return snprintf(buf, PAGE_SIZE, "%u\n", rotate); + return snprintf(buf, PAGE_SIZE, "%d\n", rotate); } static ssize_t display_rotate_store(struct device *dev, @@ -215,7 +215,7 @@ static ssize_t display_mirror_show(struct device *dev, if (!dssdev->driver->get_mirror) return -ENOENT; mirror = dssdev->driver->get_mirror(dssdev); - return snprintf(buf, PAGE_SIZE, "%u\n", mirror); + return snprintf(buf, PAGE_SIZE, "%d\n", mirror); } static ssize_t display_mirror_store(struct device *dev,