From patchwork Wed Sep 20 07:00:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Storm, Christian" X-Patchwork-Id: 816071 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:400c:c09::23f; helo=mail-wm0-x23f.google.com; envelope-from=swupdate+bncbdd6bwv65qpbbnvfrdhakgqedhctdja@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="bQRDBIgy"; dkim-atps=neutral Received: from mail-wm0-x23f.google.com (mail-wm0-x23f.google.com [IPv6:2a00:1450:400c:c09::23f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xxrLL0Mfqz9s7p for ; Wed, 20 Sep 2017 17:03:21 +1000 (AEST) Received: by mail-wm0-x23f.google.com with SMTP id n64sf90789wma.12 for ; Wed, 20 Sep 2017 00:03:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1505890998; cv=pass; d=google.com; s=arc-20160816; b=kbtke8yxZAdcYAx1NBeKufb8pM6J1Sh/yiLpF7AcxCabpEGSWc4ZifD1JBK5JNFOug QSs6oMW8l3YC+pec8s0x4iEdlYkQEtetPtpf3myjNSwyEV8BuRHRBdo1SzvMg7iy29DN t54uinUBxdoQmBeAXstoTG2530KU37jxiGRh+anC4NwFa99fNWC8M2qeMUP+3IzbffiY 1Wd0KWN7DDd3DfcLRekPhtwzvCn8YN/EUZ0fcR/MtpNUhes1InB69Q+y4Tlswen+XqDu xlvVSft0VR9d52BeuP66/C483JywGan/S9xXNShpoV4P/Z10rV0ycokZSnicUxxfNqa8 Hwiw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:message-id:date:subject:cc:to:from :arc-authentication-results:arc-message-signature:mime-version :sender:dkim-signature:arc-authentication-results; bh=hRiC0GRX3gMUtbVpEPyfb5A8nZnzb8G93bx1LezuzR8=; b=mIp2qmeBUoynn451eb8sRBEZaJob3/WMBL7Z/TVeaPftj0nZFsdn6lL6RCZxUUSeZ/ xK8negxQ1pwVMR6W5mVlvkF85HplmdSvRv9gOBtuKgCRbudpOo6JEOlgsDFiDPCwdcVf etQhh0iHSooAo43BcLIbpCegYddMtjzw03HYb73wBAjkfXiaY0Dtk2xqjMY9FH4bW3rm 0Xmxd8NgUw588G3nT/drpbXtJ8ZYmwtyc1lNCd0ieQIUhTV71ShY6VlNukaFDE4OCsC9 mtdbrnWZrTiBBzaWiIDdDG87b7vgIf1+YD5VSDrGSkt9K+DtQac4HRcE9aSTtC7+fA4Y DTRw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 192.35.17.28 is neither permitted nor denied by best guess record for domain of christian.storm@siemens.com) smtp.mailfrom=christian.storm@siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:from:to:cc:subject:date:message-id :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=hRiC0GRX3gMUtbVpEPyfb5A8nZnzb8G93bx1LezuzR8=; b=bQRDBIgykVfP0160c1NLN9SKCOAVp5c1Qz6AkHdrdb3aVSH21cfkOFy6MOGZQOmnBy ZobSPK+z318ELO5eQeP7XI7PWVZlaGKfNbj1sQpd4Tg9I6tQorQA7PQCQukm2Yur2Wno PLtYc04IIFHjiWJPsM7RwqHnooM24PiemkZyDTzsWmsr+HN6jFhsi+OtHCuImbQHPOk0 OR6Gnq2VnZaFRwGC/AugTz5lgbOEVjU99Z0YpWMHl5jYz9ZNJJryWVSqRsQ0oAVDpUq8 dPDoIwykXoNnfTfXBqrDAwoNzGLhkGWYD6XS99qgr65Fw+hnQ5zvBKb9hnJFg/ser6oW IZSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=hRiC0GRX3gMUtbVpEPyfb5A8nZnzb8G93bx1LezuzR8=; b=b9ZGllSK7NvNr2gnXnpiG2nSk50LUP/Dr748+KfxVc72uSTiJ8Tq1h0XVBlrT2bPLt vdczp8pXkt/RBi2jKr6UOapalvdPQ1Z2bsIx6XRcENV/rzWCt5r2DASb4cVkT6hJSNSm c/iEdscR+Z6C9145RQgIwwmihRppqhJbG7zM63H4A+mCSuGxLPAM8oscXyqfpT/WXBPu HJkh4NFc/xNJTaB3dJuP3ndpC3N1CCSd24lkO0ns6PivkXdUIfQv8bTWPnU2t610bbrT lvNmiJCcEX+uRMHK3v0OkzW3Qr+qivIkkFFFaDhsGPVlujFGlpih/FlFZDqEJpsZCcB1 WFeg== Sender: swupdate@googlegroups.com X-Gm-Message-State: AHPjjUgsmpAC3kn1k64oi/tTCnYbdLfnhkdykgb6WI4Ge00dJSEdmqxv ig6mwHyH3YWYfzJfKhJ+0fQ= X-Google-Smtp-Source: AOwi7QCE0WGmix8HtlIhUd+OB24Z6TcSyD1RRUhw8rZUPRusEbRnqaLv5zVjMz6RLn9ovyeLRJKguw== X-Received: by 10.28.87.133 with SMTP id l127mr6178wmb.27.1505890998215; Wed, 20 Sep 2017 00:03:18 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 10.28.216.71 with SMTP id p68ls258709wmg.2.gmail; Wed, 20 Sep 2017 00:03:17 -0700 (PDT) X-Received: by 10.223.151.69 with SMTP id r63mr264783wrb.3.1505890997801; Wed, 20 Sep 2017 00:03:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505890997; cv=none; d=google.com; s=arc-20160816; b=RSk47qQYYdHO6+CbzpnHm3Dxn/Bcu3EvRk41slleHumRoUo4kEuc558Q/8z3KdM9cq DDT1i5cfMfTRV/PxEPyGOhMZ0v1KfTIhO/q+wxEDXBhXpg5XnLE3yT4lppVLcIX+a+sf fJ+l5jM06ebLsQRExsL5qY/mWE3D1h/MQpALo0r5mZkbS26h/NoRJruuxnEEtn1OLp15 4gO8JIae51bzPjKqZRsoG+bI6YNGmI2GHjdK4b7Rbs4ZvSREVMiBvy0wUs4TObkcZLNJ 9a03Qng9A4NqisxLefgIW8hpYj/HTv1tWc6hcyguZ9jV4s7RnBAZOXWjbP0AzMkEfRiw 1/Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:arc-authentication-results; bh=csoNzxfv91eHZnklEZslWbHA7aDr9VlFu6dJyXcSJHU=; b=gR3rcvEGg3F5uFziOVyl97V5WJb4Vr8jnHYFDBBM6FttX0tHikw1jjIH1KC7mVjapd 9i3dcTUay38pRvc2BLwg9DcJHUEt2Jx13LC9arEMWLWNY+14FTkz/hsxJNFOH+C/NpMj KUKiJUvxyK1/H+uYaaEe+B9hEjKxEj3Lp3pkZfjnj+bBmaxWs0E8siEukN0b2ciGpfxa vLrUz6F3kELf2OFOM0ekYTy3K3Ud5Lq8O1qF4P+tb5K63R4rjUFmbG/2dF9pidtf5KJP k1ixpDAHoppYGpcjEEUCVX4D6tnctqA2zlcbo9QCi+tMix+njaBHiwR+JT+DyLY5AUwL Qjrw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 192.35.17.28 is neither permitted nor denied by best guess record for domain of christian.storm@siemens.com) smtp.mailfrom=christian.storm@siemens.com Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id 191si61716wmn.2.2017.09.20.00.03.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Sep 2017 00:03:17 -0700 (PDT) Received-SPF: neutral (google.com: 192.35.17.28 is neither permitted nor denied by best guess record for domain of christian.storm@siemens.com) client-ip=192.35.17.28; Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id v8K73Hxl016299 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 20 Sep 2017 09:03:17 +0200 Received: from MD1KR9XC.ad001.siemens.net ([139.25.69.251]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id v8K73HES032552; Wed, 20 Sep 2017 09:03:17 +0200 From: Christian Storm To: swupdate@googlegroups.com Cc: Christian Storm Subject: [swupdate] [PATCH] parser: don't use printf() for logging Date: Wed, 20 Sep 2017 09:00:35 +0200 Message-Id: <20170920070035.10778-1-christian.storm@siemens.com> X-Mailer: git-send-email 2.14.1 X-Original-Sender: christian.storm@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 192.35.17.28 is neither permitted nor denied by best guess record for domain of christian.storm@siemens.com) smtp.mailfrom=christian.storm@siemens.com Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Signed-off-by: Christian Storm Reviewed-by: Stefano Babic --- parser/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/parser.c b/parser/parser.c index c962b59..a41bc24 100644 --- a/parser/parser.c +++ b/parser/parser.c @@ -623,7 +623,7 @@ int parse_cfg (struct swupdate_cfg *swcfg, const char *filename) return -1; } else { strncpy(swcfg->version, str, sizeof(swcfg->version)); - fprintf(stdout, "Version %s\n", swcfg->version); + TRACE("Version %s", swcfg->version); } snprintf(node, sizeof(node), "%s.embedded-script", NODEROOT);