From patchwork Wed Feb 20 09:31:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 222022 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 5FB422C0085 for ; Wed, 20 Feb 2013 20:31:40 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A60968B997; Wed, 20 Feb 2013 09:31:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e3Q9GVdpMpXI; Wed, 20 Feb 2013 09:31:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 67F298AA7C; Wed, 20 Feb 2013 09:31:35 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id E2E7F8F74B for ; Wed, 20 Feb 2013 09:31:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 8FB0630F15 for ; Wed, 20 Feb 2013 09:31:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xV4SFfbEnwyO for ; Wed, 20 Feb 2013 09:31:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ee0-f47.google.com (mail-ee0-f47.google.com [74.125.83.47]) by silver.osuosl.org (Postfix) with ESMTPS id C557630CB8 for ; Wed, 20 Feb 2013 09:31:32 +0000 (UTC) Received: by mail-ee0-f47.google.com with SMTP id e52so3813452eek.20 for ; Wed, 20 Feb 2013 01:31:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; bh=/cTl9oDbY4/U+9671CopNcy6OL+l2G05kyevGKfODX8=; b=Uvea7kiZ6wOwE2t6ltJ/AQDpKqWCBrxx5581J9wnGudAC6gjb7/GK6qlpOsr0aOflV SSxoTf7r1ze9IZwmHlCWb1pTKbR8atjDwbcZwr6VQEICbLdGgYrhlaAadXOKIEe2yf+F vmzA2TOgW8GPAzNt+VSF0zKbnII9QyUNLa8hjBD/oEkGxkzSo0Z5dZnLRixchg7sCS6i zWc5WND1T4A7KVoS57i2PXlnyf4uTeQAYTZP1KJTK1Rn/f87ikOSUVqtESXmPq8aL0UE ddqIJ0nWD142LS636D3yFePFjS/e0RUloRhAzkVxE6NFLRih0/M3l//fOlzdOEP8c7om 1H0w== X-Received: by 10.14.175.70 with SMTP id y46mr66928754eel.6.1361352690686; Wed, 20 Feb 2013 01:31:30 -0800 (PST) Received: from ld2036.tmt.telital.com ([213.205.6.118]) by mx.google.com with ESMTPS id 3sm108212618eej.6.2013.02.20.01.31.28 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Feb 2013 01:31:29 -0800 (PST) From: Fabio Porcedda To: buildroot@uclibc.org Date: Wed, 20 Feb 2013 10:31:28 +0100 Message-Id: <1361352688-25309-1-git-send-email-fabio.porcedda@gmail.com> X-Mailer: git-send-email 1.8.1.1 MIME-Version: 1.0 Subject: [Buildroot] [For master RFC] fix compiler warnings: use puts() instead of printf() X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Use puts() because printf() isn't needed, to fix the following compiler warnings: /barebox/common/menu.c: In function ‘menu_show’: /barebox/common/menu.c:277:4: warning: format not a string literal and no format arguments [-Wformat-security] /barebox/scripts/omap4_usbboot.c: In function ‘read_asic_id’: /barebox/scripts/omap4_usbboot.c:101:3: warning: format not a string literal and no format arguments [-Wformat-security] Signed-off-by: Fabio Porcedda --- common/menu.c | 2 +- scripts/omap4_usbboot.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/menu.c b/common/menu.c index ce93838..30dced7 100644 --- a/common/menu.c +++ b/common/menu.c @@ -274,7 +274,7 @@ int menu_show(struct menu *m) printf("Auto Select in"); } else { auto_display_len = strlen(m->auto_display); - printf(m->auto_display); + puts(m->auto_display); } printf(" %2d", countdown--); } diff --git a/scripts/omap4_usbboot.c b/scripts/omap4_usbboot.c index 8c5775d..34e53c0 100644 --- a/scripts/omap4_usbboot.c +++ b/scripts/omap4_usbboot.c @@ -98,7 +98,7 @@ int read_asic_id(struct usb_handle *usb) sprintf(line+4+j*3, "%02X ", id[i+j]); line[4+j*3+0] = '\n'; line[4+j*3+1] = 0; - printf(line); + puts(line); } ret = 0; for (i = 1, j = 0; i < sizeof(id) && j < id[0]; i += 2+id[i+1], j++) {