From patchwork Tue Apr 29 12:21:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masanari Iida X-Patchwork-Id: 4087241 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 814CFBFF02 for ; Tue, 29 Apr 2014 12:22:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B66602018E for ; Tue, 29 Apr 2014 12:22:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F339920171 for ; Tue, 29 Apr 2014 12:22:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933612AbaD2MWT (ORCPT ); Tue, 29 Apr 2014 08:22:19 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:56710 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933447AbaD2MWS (ORCPT ); Tue, 29 Apr 2014 08:22:18 -0400 Received: by mail-pa0-f47.google.com with SMTP id fa1so124782pad.20 for ; Tue, 29 Apr 2014 05:22:17 -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:in-reply-to:references; bh=YAQmrjlMbdv1ZkCKtuAwijiEXDPciu5zazf75rYuPjs=; b=jTK7AeP3pNOfoLWpFxSl/cYCK+wSTZjewKjv9xQmT/IZcPG13w2DEHX7fSymMUi70Q Z9mlr9YKlJ6Q5r+g8yuGLhzswFiHRNrl0qktk2Yo2jELj/NBHclMs0cIIrvKd028kDMq hU33cCp1zmDKpesaMJTj1QuKzNWY+wyDB5TN3BfRjAjVGADmmqQMIJEuZWUwUdgItH7k ZJvBaQBUBuapBUY7vI+x8qH+C2BJNKerkkXY3P+9eJLTNzbY/cekn931jwUhvdjck0B1 DWin9eqi+3E7hlpGgt1vUaH+DlDDP9MarzC6MDNbYv8Uo3DArpuEVQvV2wiJ78jWdtkM 1NvQ== X-Received: by 10.66.249.233 with SMTP id yx9mr32986321pac.3.1398774136370; Tue, 29 Apr 2014 05:22:16 -0700 (PDT) Received: from masabert (i118-21-156-233.s30.a048.ap.plala.or.jp. [118.21.156.233]) by mx.google.com with ESMTPSA id te2sm109787761pac.25.2014.04.29.05.22.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Apr 2014 05:22:15 -0700 (PDT) Received: by masabert (Postfix, from userid 1000) id B5788627BE; Tue, 29 Apr 2014 21:22:09 +0900 (JST) From: Masanari Iida To: plagnioj@jcrosoft.com, tomi.valkeinen@ti.com, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Masanari Iida Subject: [PATCH 2/2] video: fbdev: Fix format string mismatch in gbefb.c Date: Tue, 29 Apr 2014 21:21:55 +0900 Message-Id: <1398774115-15353-2-git-send-email-standby24x7@gmail.com> X-Mailer: git-send-email 2.0.0.rc1 In-Reply-To: <1398774115-15353-1-git-send-email-standby24x7@gmail.com> References: <1398774115-15353-1-git-send-email-standby24x7@gmail.com> 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=ham 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 format string mismatch in gbefb_show_memsize(). Signed-off-by: Masanari Iida --- drivers/video/fbdev/gbefb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/gbefb.c b/drivers/video/fbdev/gbefb.c index 3ec65a8..4aa56ba 100644 --- a/drivers/video/fbdev/gbefb.c +++ b/drivers/video/fbdev/gbefb.c @@ -1068,7 +1068,7 @@ static struct fb_ops gbefb_ops = { static ssize_t gbefb_show_memsize(struct device *dev, struct device_attribute *attr, char *buf) { - return snprintf(buf, PAGE_SIZE, "%d\n", gbe_mem_size); + return snprintf(buf, PAGE_SIZE, "%u\n", gbe_mem_size); } static DEVICE_ATTR(size, S_IRUGO, gbefb_show_memsize, NULL);