From patchwork Wed Jan 22 14:42:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijay Kilari X-Patchwork-Id: 3523711 Return-Path: X-Original-To: patchwork-linux-arm@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 B301A9F2E9 for ; Wed, 22 Jan 2014 14:49:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A79C92011D for ; Wed, 22 Jan 2014 14:49:23 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7AFDC20117 for ; Wed, 22 Jan 2014 14:49:22 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W5z5q-00089R-HJ; Wed, 22 Jan 2014 14:47:52 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W5z5Q-0000Qj-J8; Wed, 22 Jan 2014 14:47:24 +0000 Received: from mail-pa0-x229.google.com ([2607:f8b0:400e:c03::229]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W5z4x-0000L7-9L for linux-arm-kernel@lists.infradead.org; Wed, 22 Jan 2014 14:46:57 +0000 Received: by mail-pa0-f41.google.com with SMTP id fa1so475439pad.0 for ; Wed, 22 Jan 2014 06:46:34 -0800 (PST) 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=33L4f+6JTfbStlS/8Hfhrpqq7RLBqYXNlMaWqkWj3Lc=; b=cuhH9qdKMBPMGUOmelgScUMWdY6WsgFNfsaS/EW0kYofwpfdEm+JomIX82lffbOTZV /qyeET+1AfCfYp9Q/s/LQQX5Jrz/5trWgHTyu/aUTN53qlT/8Fctx7DoRT94KryHFm54 KCiO/v8KtYHGN2u5uYkP9B0R/Rhr4wx1wQHJ5fPXMhqGRr4QUw+tEdXMt8MtGsN4U718 8XjhedyYBs4Vb28bhvM6QulA7dgPsNyYaBjTF9evpJmSjJOOfPhPaFOBTM84RfAuPD3X ls4t/xhSOilVJynW23CI+Bnvk5S9PPQmGD7rNaim1cbV6v/wxeQwa97JU0wCmOHexXU8 W8MQ== X-Received: by 10.68.162.131 with SMTP id ya3mr2047048pbb.102.1390401994319; Wed, 22 Jan 2014 06:46:34 -0800 (PST) Received: from ubuntu.caveonetworks.com ([115.119.134.194]) by mx.google.com with ESMTPSA id db3sm23950684pbb.10.2014.01.22.06.46.30 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 Jan 2014 06:46:33 -0800 (PST) From: vijay.kilari@gmail.com To: will.deacon@arm.com, sandeepa.prabhu@linaro.org, jason.wessel@windriver.com, takahiro.akashi@linaro.org, Catalin.Marinas@arm.com Subject: [PATCH v7 5/6] misc: debug: remove compilation warnings Date: Wed, 22 Jan 2014 20:12:52 +0530 Message-Id: <1390401773-12100-6-git-send-email-vijay.kilari@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1390401773-12100-1-git-send-email-vijay.kilari@gmail.com> References: <1390401773-12100-1-git-send-email-vijay.kilari@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140122_094655_616849_2AB1B406 X-CRM114-Status: GOOD ( 10.10 ) X-Spam-Score: -2.0 (--) Cc: Prasun.Kapoor@caviumnetworks.com, Vijaya Kumar K , linaro-kernel@lists.linaro.org, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, 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 From: Vijaya Kumar K Resolve following compiler warnings warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'u64' [-Wformat] tested for warnings on arm32 & arm64 Signed-off-by: Vijaya Kumar K --- drivers/misc/kgdbts.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/misc/kgdbts.c b/drivers/misc/kgdbts.c index 36f5d52..78e10b2 100644 --- a/drivers/misc/kgdbts.c +++ b/drivers/misc/kgdbts.c @@ -350,8 +350,8 @@ static int check_single_step(char *put_str, char *arg) kgdb_hex2mem(&put_str[1], (char *)kgdbts_gdb_regs, NUMREGBYTES); gdb_regs_to_pt_regs(kgdbts_gdb_regs, &kgdbts_regs); - v2printk("Singlestep stopped at IP: %lx\n", - instruction_pointer(&kgdbts_regs)); + v2printk("Singlestep stopped at IP: %llx\n", + (unsigned long long)instruction_pointer(&kgdbts_regs)); if (sstep_thread_id != cont_thread_id) { /* @@ -376,8 +376,8 @@ static int check_single_step(char *put_str, char *arg) continue_test: matched_id = 0; if (instruction_pointer(&kgdbts_regs) == addr) { - eprintk("kgdbts: SingleStep failed at %lx\n", - instruction_pointer(&kgdbts_regs)); + eprintk("kgdbts: SingleStep failed at %llx\n", + (unsigned long long)instruction_pointer(&kgdbts_regs)); return 1; } @@ -491,8 +491,8 @@ static int emul_sstep_put(char *put_str, char *arg) kgdb_hex2mem(&put_str[1], (char *)kgdbts_gdb_regs, NUMREGBYTES); gdb_regs_to_pt_regs(kgdbts_gdb_regs, &kgdbts_regs); - v2printk("Stopped at IP: %lx\n", - instruction_pointer(&kgdbts_regs)); + v2printk("Stopped at IP: %llx\n", + (unsigned long long)instruction_pointer(&kgdbts_regs)); /* Want to stop at IP + break instruction size by default */ sstep_addr = cont_addr + BREAK_INSTR_SIZE; break;