Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1603988imm; Wed, 23 May 2018 20:26:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq8vGWSM7Cb7Yl8dr6rmByBtC3j4gaCRYD9OJxbzTiWufpDREUoO+agJTybdL05ijgQHi/m X-Received: by 2002:a17:902:bb84:: with SMTP id m4-v6mr5431682pls.339.1527132393632; Wed, 23 May 2018 20:26:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527132393; cv=none; d=google.com; s=arc-20160816; b=hq1sQ0/bKyFQjNOgCISVMllZ2WMtf3ptR+4pgn2KcEjPaWaB3agETcnfl5zJN8gH7y HniowvfMgk2vz/JY5+9Odeo+pocnIWvn8rbXIaIIjv3YTE8HT5LvOjtSwnVUvPitgayO Sehsr7HNn0Z9gDOcmTYf8CiTAVrcPldtCvKWPd4m6jA7gZrw7cI62ta5bMVD6mxA2rgI EMdjNg2XlYx78WLGuQtgj1McYs7DyWqWcJioNd5yeKsCs+HYqdb/zH1YW/fO6Lmd/0IK /exAjWddljdU2jl1NKj3OMIJ6JlTQCNun3X/aR8EOzGKDApnNZ0xTie9M4mqfRTyZXvC 2QAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=3aDe2qZsEP+MTj6xWTyMsS61R4tPmZH7a4mP6i/oLoA=; b=zqouxj4qV4q3F9EQ5uQRjJ3aVbtQYtE5Ivi41ZMr+U/WkIDvY3lJ6dyDeji6Pbh6/b IOqhX5FzFIgNG6WtLg17FQXkY2LbWparJmkimHdsv4YTjzO/6BZVdDs7WnwWyAZ8UNL+ jxF0cz2og087aYwb577YtlxbOQkWb2qe2xIOPr7mw1hCWI5mg1ahUzRTSz1/XdJvdFwq IWY4xlAPkh1Fvf2J1u+0V0lsj2PkAb9Yc+x+hxPvtBFw8AK4gKUgMukYBpZ/svBdQsX1 I7RK1pAxX4Z5qwbBMekSAFL4AO8tWrgtQUQCe7k1FZliR9JjenswIBGzY44k9ppsDJbM vi7Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k3-v6si590342pga.539.2018.05.23.20.26.18; Wed, 23 May 2018 20:26:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935337AbeEXDNA (ORCPT + 99 others); Wed, 23 May 2018 23:13:00 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:8130 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935171AbeEXDM6 (ORCPT ); Wed, 23 May 2018 23:12:58 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 434E9E2B02981; Thu, 24 May 2018 11:12:44 +0800 (CST) Received: from linux-work.huawei.com (10.67.189.174) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.382.0; Thu, 24 May 2018 11:12:37 +0800 From: nixiaoming To: , CC: , , Subject: [PATCH] scripts/dtc: Fixed format mismatch in fprintf Date: Thu, 24 May 2018 10:50:18 +0800 Message-ID: <20180524025018.73187-1-nixiaoming@huawei.com> X-Mailer: git-send-email 2.10.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.189.174] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org format specifier "d" need arg type "int" , but the according arg "fdt32_to_cpu(xxx)" has type "unsigned int" Signed-off-by: nixiaoming --- scripts/dtc/fdtdump.c | 6 +++--- scripts/dtc/flattree.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/dtc/fdtdump.c b/scripts/dtc/fdtdump.c index 7d460a5..851bb6f 100644 --- a/scripts/dtc/fdtdump.c +++ b/scripts/dtc/fdtdump.c @@ -66,12 +66,12 @@ static void dump_blob(void *blob) printf("/dts-v1/;\n"); printf("// magic:\t\t0x%x\n", fdt32_to_cpu(bph->magic)); - printf("// totalsize:\t\t0x%x (%d)\n", totalsize, totalsize); + printf("// totalsize:\t\t0x%x (%u)\n", totalsize, totalsize); printf("// off_dt_struct:\t0x%x\n", off_dt); printf("// off_dt_strings:\t0x%x\n", off_str); printf("// off_mem_rsvmap:\t0x%x\n", off_mem_rsvmap); - printf("// version:\t\t%d\n", version); - printf("// last_comp_version:\t%d\n", + printf("// version:\t\t%u\n", version); + printf("// last_comp_version:\t%u\n", fdt32_to_cpu(bph->last_comp_version)); if (version >= 2) printf("// boot_cpuid_phys:\t0x%x\n", diff --git a/scripts/dtc/flattree.c b/scripts/dtc/flattree.c index 8d268fb..28da281 100644 --- a/scripts/dtc/flattree.c +++ b/scripts/dtc/flattree.c @@ -393,7 +393,7 @@ void dt_to_blob(FILE *f, struct dt_info *dti, int version) padlen = 0; if (quiet < 1) fprintf(stderr, - "Warning: blob size %d >= minimum size %d\n", + "Warning: blob size %u >= minimum size %d\n", fdt32_to_cpu(fdt.totalsize), minsize); } } -- 2.10.1