From patchwork Thu Jun 4 13:41:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yousong Zhou X-Patchwork-Id: 480743 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 39DA214018C for ; Thu, 4 Jun 2015 23:54:50 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=H3trH12z; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 4986C280966; Thu, 4 Jun 2015 15:52:12 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id B6DF3280966 for ; Thu, 4 Jun 2015 15:51:51 +0200 (CEST) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com [209.85.192.178]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Thu, 4 Jun 2015 15:51:51 +0200 (CEST) Received: by pdjm12 with SMTP id m12so31446016pdj.3 for ; Thu, 04 Jun 2015 06:53:24 -0700 (PDT) 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=3sKkGcCuGF3bAw9XIxpNF+i2s2ZMrFWRpl9blZSrdfk=; b=H3trH12zQyrbhfbqZsBg9X5AkTWAwJ4qt0WZtPM+T1NKfzfbrQMcwiS3uE0Y6ph8uh YLiijqKRhDTCy5b1Eh8UwbBSjIQ1oSqHAvBO6IJy7R3OznZCLYGx5rAn+92A8isBkqNE IUXge/rokOw1aic3A7jujhEyifD+/budttCyv5Uvyue6QLH95Db0DKF4XjIG5o7hhRse 6BSQ4qJFqMiIKNySksimH8sHjRaphP8Iw+AhInD4bvuj4tNYu+urwF0PekCb6gfucBLu IwrfhVNiahV9QpTHbmm2rCwj9bR65y19bRA9YeVzM7GnLEmg0rAb3iUQxW0oif6HqjLQ UU9w== X-Received: by 10.69.19.129 with SMTP id gu1mr31867728pbd.162.1433426004315; Thu, 04 Jun 2015 06:53:24 -0700 (PDT) Received: from debian.corp.sankuai.com ([103.29.140.58]) by mx.google.com with ESMTPSA id qt4sm3885676pbc.86.2015.06.04.06.53.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jun 2015 06:53:23 -0700 (PDT) From: Yousong Zhou To: nbd@openwrt.org Date: Thu, 4 Jun 2015 21:41:38 +0800 Message-Id: <1433425302-26448-2-git-send-email-yszhou4tech@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1433425302-26448-1-git-send-email-yszhou4tech@gmail.com> References: <1433425302-26448-1-git-send-email-yszhou4tech@gmail.com> Cc: openwrt-devel@lists.openwrt.org Subject: [OpenWrt-Devel] [PATCH 1/5] ulog: always use stderr for ulog_stdio(). X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" stdout is for normal program output. Signed-off-by: Yousong Zhou --- ulog.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ulog.c b/ulog.c index 34db0db..38fb1c0 100644 --- a/ulog.c +++ b/ulog.c @@ -105,9 +105,6 @@ static void ulog_stdio(int priority, const char *fmt, va_list ap) { FILE *out = stderr; - if (priority == LOG_INFO || priority == LOG_NOTICE) - out = stdout; - if (_ulog_ident) fprintf(out, "%s: ", _ulog_ident);