From patchwork Tue Jun 3 11:37:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christian Hesse X-Patchwork-Id: 4286751 X-Patchwork-Delegate: dave@jikos.cz Return-Path: X-Original-To: patchwork-linux-btrfs@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 72A0FBEEA7 for ; Tue, 3 Jun 2014 11:38:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B32742021B for ; Tue, 3 Jun 2014 11:38:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D6B842021A for ; Tue, 3 Jun 2014 11:38:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752753AbaFCLiL (ORCPT ); Tue, 3 Jun 2014 07:38:11 -0400 Received: from mx.mylinuxtime.de ([148.251.109.235]:34022 "EHLO mx.mylinuxtime.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751833AbaFCLiK (ORCPT ); Tue, 3 Jun 2014 07:38:10 -0400 Received: from leda.eworm.de (unknown [10.10.1.2]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx.mylinuxtime.de (Postfix) with ESMTPSA id 057D722678A; Tue, 3 Jun 2014 13:38:09 +0200 (CEST) Received: by leda.eworm.de (Postfix, from userid 1000) id B62B91466F4; Tue, 3 Jun 2014 13:38:08 +0200 (CEST) From: Christian Hesse To: linux-btrfs@vger.kernel.org Cc: Christian Hesse Subject: [PATCH 1/1] btrfs-progs: fix compiler warning Date: Tue, 3 Jun 2014 13:37:45 +0200 Message-Id: <1401795465-27713-1-git-send-email-mail@eworm.de> X-Mailer: git-send-email 2.0.0 MIME-Version: 1.0 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 gcc 4.9.0 gives a warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘u64’ Using %llu and casting to unsigned long long (same as bytenr) fixes this. Signed-off-by: Christian Hesse --- btrfs-select-super.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/btrfs-select-super.c b/btrfs-select-super.c index 15e6921..d7cd187 100644 --- a/btrfs-select-super.c +++ b/btrfs-select-super.c @@ -100,8 +100,8 @@ int main(int ac, char **av) /* we don't close the ctree or anything, because we don't want a real * transaction commit. We just want the super copy we pulled off the * disk to overwrite all the other copies - */ - printf("using SB copy %d, bytenr %llu\n", num, + */ + printf("using SB copy %llu, bytenr %llu\n", (unsigned long long)num, (unsigned long long)bytenr); return ret; }