From patchwork Sun Nov 22 21:03:05 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOpbWV0aCBNw6FydG9u?= X-Patchwork-Id: 2158 Return-path: Envelope-to: mchehab@infradead.org Delivery-date: Sun, 22 Nov 2009 21:03:15 +0000 Received: from bombadil.infradead.org [18.85.46.34] by pedra.chehab.org with IMAP (fetchmail-6.3.6) for (single-drop); Mon, 23 Nov 2009 09:19:47 -0200 (BRST) Received: from vger.kernel.org ([209.132.176.167]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1NCJaU-0005HE-Le; Sun, 22 Nov 2009 21:03:14 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755275AbZKVVDG (ORCPT + 1 other); Sun, 22 Nov 2009 16:03:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755267AbZKVVDG (ORCPT ); Sun, 22 Nov 2009 16:03:06 -0500 Received: from mail01d.mail.t-online.hu ([84.2.42.6]:53177 "EHLO mail01d.mail.t-online.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754638AbZKVVDF (ORCPT ); Sun, 22 Nov 2009 16:03:05 -0500 Received: from [192.168.1.64] (dsl51B6C41D.pool.t-online.hu [81.182.196.29]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail01d.mail.t-online.hu (Postfix) with ESMTPSA id B09E9758801; Sun, 22 Nov 2009 22:02:21 +0100 (CET) Message-ID: <4B09A709.7070505@freemail.hu> Date: Sun, 22 Nov 2009 22:03:05 +0100 From: =?ISO-8859-2?Q?N=E9meth_M=E1rton?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; hu-HU; rv:1.8.1.21) Gecko/20090402 SeaMonkey/1.1.16 MIME-Version: 1.0 To: Hans Verkuil CC: linux-media@vger.kernel.org Subject: Re: [cron job] v4l-dvb daily build 2.6.22 and up: ERRORS, 2.6.16-2.6.21: ERRORS References: <200911221953.nAMJrnWU075450@smtp-vbr1.xs4all.nl> In-Reply-To: <200911221953.nAMJrnWU075450@smtp-vbr1.xs4all.nl> X-DCC-mail.t-online.hu-Metrics: mail01d.mail.t-online.hu 32711; Body=2 Fuz1=2 Fuz2=2 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hans Verkuil worte: > linux-2.6.22.19-armv5: WARNINGS /marune/build/v4l-dvb-master/v4l/videobuf-core.c: In function 'videobuf_reqbufs': /marune/build/v4l-dvb-master/v4l/videobuf-core.c:434: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int' I think this can be solved by explicit casting the result. --- Subject: [PATCH] explicitly cast page count From: Márton Németh Explicitly cast page count in the debug message. Signed-off-by: Márton Németh --- -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -r bc16afd1e7a4 linux/drivers/media/video/videobuf-core.c --- a/linux/drivers/media/video/videobuf-core.c Sat Nov 21 12:01:36 2009 +0100 +++ b/linux/drivers/media/video/videobuf-core.c Sun Nov 22 21:56:20 2009 +0100 @@ -431,8 +431,9 @@ count = VIDEO_MAX_FRAME; size = 0; q->ops->buf_setup(q, &count, &size); - dprintk(1, "reqbufs: bufs=%d, size=0x%x [%d pages total]\n", - count, size, (count*PAGE_ALIGN(size))>>PAGE_SHIFT); + dprintk(1, "reqbufs: bufs=%d, size=0x%x [%u pages total]\n", + count, size, + (unsigned int)((count*PAGE_ALIGN(size))>>PAGE_SHIFT) ); retval = __videobuf_mmap_setup(q, count, size, req->memory); if (retval < 0) {