From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 238D4A0A0E for ; Mon, 10 May 2021 18:07:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1CFEF406A3; Mon, 10 May 2021 18:07:30 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2085.outbound.protection.outlook.com [40.107.223.85]) by mails.dpdk.org (Postfix) with ESMTP id AC6784003E for ; Mon, 10 May 2021 18:07:28 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JcTkKu4z8zLmHAaHFOM9zJm0jNKMnxy5gih6rhYlf5HkU7wsyQgVASEQeGyiMDxGgzOQTtsR1hVq3q+LCVMY4I2NGt91jZgPIFdo8oK0wzY/1ezVHfLrHr+DCm4zzCzU8aEiPQEK1KOf/1GoggDgX5MAr0tO5N55BXLJXlwwj8lI5fUxL/oTIWjlTZuTCxoHrG9H8w7gcD+NP58mCQmEdITsl+8pbluyR8e9x7jZ16M4r7Qm9jZEdT6BmRwzZ4LkDQX/AB8NZTiq58qL+CLsV+RiSevMU4LcOBmHkmoub4TxLs6GDev+GAzUWKQMFC2RJinTxOIjl9iqlxDdPLhC3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DGi9PDIe+qnkXFH6FcPlAEtP88qhUZ6AT7fFaduwp1Y=; b=K6SHZEXsyCOjgSXhMM9zJjIz4+BGDJudZxHvgwlAmnSUMIM+h3HS06XMm0adeDFlUSQ/JljYWz+d3aFkP1u/MmsJBaLDbZ2J8C3tjUs8W/SNg+QPEsRgnWhXk6N38rjhy01D4fjkAipdPErOJwN/Qe5cuTvJiCSEnw5DEchFGc2U77EWNgu9Q5w9gvW67DYWRLrGvnpR0rTsBRiRvxZCfvMi4t7q9z+PdS5BwmstJ+srQopxgcQk/18iZd/LQAg7Sj5B3w5Q8i+NpbjeoFREUgP7L1Xj3rDkG1MOzb8FTAsgV5GyymCx6Xd3oLEpBpAUidKOUh6oQbaIWGbxrWvzXA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=orange.com smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DGi9PDIe+qnkXFH6FcPlAEtP88qhUZ6AT7fFaduwp1Y=; b=DRHps9zrwXZcsRazte/dDgIL2RpkJE/l7zhUiOsIOvdFJS3KRNhsXYfFHEH+odrXSq7mah6P/BS9rawU2e6wEG5qSBhLDomnQB1VaKxlG/syvXcb25gfMG6VsEgaVMiFtRS8amkW6fEKobzkp4Oh90DYKKhLnptHAoI+hz4CqfrnTqchF9RA44TRKSwqkaAWmzEJbcW4ucnB3xPImXODp0bqfFI5bYpCBwduf2GZgH59waSj/li3g5yo0pDnx5cmgQ7uYrPcO/bRxuxM2oekJMJov8p+4wuGdSxHVINS7e8kKu33uyQy48UKqhjsecw52123iOUWh9AN69HJO1rLdQ== Received: from BN9PR03CA0272.namprd03.prod.outlook.com (2603:10b6:408:f5::7) by DM5PR12MB1481.namprd12.prod.outlook.com (2603:10b6:4:e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.29; Mon, 10 May 2021 16:07:27 +0000 Received: from BN8NAM11FT013.eop-nam11.prod.protection.outlook.com (2603:10b6:408:f5:cafe::9e) by BN9PR03CA0272.outlook.office365.com (2603:10b6:408:f5::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Mon, 10 May 2021 16:07:27 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; orange.com; dkim=none (message not signed) header.d=none;orange.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT013.mail.protection.outlook.com (10.13.176.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4108.25 via Frontend Transport; Mon, 10 May 2021 16:07:27 +0000 Received: from nvidia.com (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 10 May 2021 16:07:23 +0000 From: Xueming Li To: Ferruh Yigit CC: Luca Boccassi , Alexandre Ferrieux , dpdk stable Date: Mon, 10 May 2021 23:59:53 +0800 Message-ID: <20210510160258.30982-44-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210510160258.30982-1-xuemingl@nvidia.com> References: <20210510160258.30982-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 13c7d9ce-cf56-491c-d042-08d913cdb4e6 X-MS-TrafficTypeDiagnostic: DM5PR12MB1481: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TKbPS4sY9W04DQH6nVULBUMpabVd0K9XLLDrruUlzW0tkPNjxcWMJSfRuTCOqfSZvsHLGbAv4Vkfw6V2ONbAUrW5942E89c4G1Ts//S+4ldoCJOXIZdQBqXQLWV58//7LE29LgFwj+4b6RRVpSfvwMzpDFxEVqZhnyqBhWk4Mi32EKjFbajTJnSV/5NM2ac1n90TgHy45/L9KLpQ6lvnhDExcCR6/CFQYPkIqAGtIqXozAQhgRBHvrkLM1AaJGl+KRpMCnBr5X5svVmNQkZKm4vI/kogBZZNxl/zrvGhoVi+Y7egSs7fdw0OOec8BasAFuNvlp8H5Szg+bEtncYLJfONRRGzAm6H8o8ziodUozTb4IZ42sRDInXdLlK1NiL+6O0hFcvL7LhBb5qDtVs+mlZDxTWbePcsnkSbvC8sAWFzV/tITJHy1T6JaGBzb/lrbMcsfBaNpScSTnfrJTV6GMXqe4D7O4iBBwBN4cOxHcvsBylgvt89No7SVpRfbWQKIgBrWJs992Y7f/BeK1uGhU4M86bMdCF4UDxc2hqSE/ugztQpTz+kjlL9//LWNlphlVReRtOS3cDvg/IsbTXVWlm/WbDeolEWvETbvLE/z0p6RMVYobbW4LuCr0PtF635o4BtBbSKyJ0+9bxiOJ0P3HMxangErBFQf1+DGSCrcfBMHuECPxKRSQUiiFIpGR7mqCP+Hh83VCoBxo19PDzs4PmIUfiTE/jnGj4a9gfoaYq5k4Cf1tdFJHHgTCxq/zRzauJ89/obQMJwurp/Da1epg== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(396003)(39860400002)(136003)(376002)(346002)(46966006)(36840700001)(86362001)(7696005)(4326008)(8676002)(478600001)(2616005)(2906002)(82310400003)(966005)(36756003)(53546011)(55016002)(1076003)(36860700001)(82740400003)(70206006)(7636003)(316002)(6916009)(54906003)(26005)(6286002)(426003)(47076005)(356005)(70586007)(16526019)(186003)(83380400001)(8936002)(336012)(6666004)(5660300002)(36906005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2021 16:07:27.2235 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 13c7d9ce-cf56-491c-d042-08d913cdb4e6 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT013.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1481 Subject: [dpdk-stable] patch 'log/linux: make default output stderr' has been queued to stable release 20.11.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/12/21. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/d43987787c0257694974864963d8b420ee4f89dd Thanks. Xueming Li --- >From d43987787c0257694974864963d8b420ee4f89dd Mon Sep 17 00:00:00 2001 From: Ferruh Yigit Date: Tue, 9 Feb 2021 15:06:20 +0000 Subject: [PATCH] log/linux: make default output stderr Cc: Luca Boccassi [ upstream commit 5988725d0efeb7021670986aafeb3ff3d87839e1 ] In Linux by default DPDK log goes to stdout, as well as syslog. It is possible for an application to change the library output stream via 'rte_openlog_stream()' API, to set it to stderr, it can be used as: rte_openlog_stream(stderr); But still updating the default log output to 'stderr'. Bugzilla ID: 8 Fixes: af75078fece3 ("first public release") Reported-by: Alexandre Ferrieux Signed-off-by: Ferruh Yigit --- lib/librte_eal/linux/eal_log.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_eal/linux/eal_log.c b/lib/librte_eal/linux/eal_log.c index 43c8460bfb..2095df74c5 100644 --- a/lib/librte_eal/linux/eal_log.c +++ b/lib/librte_eal/linux/eal_log.c @@ -27,9 +27,9 @@ console_log_write(__rte_unused void *c, const char *buf, size_t size) { ssize_t ret; - /* write on stdout */ - ret = fwrite(buf, 1, size, stdout); - fflush(stdout); + /* write on stderr */ + ret = fwrite(buf, 1, size, stderr); + fflush(stderr); /* Syslog error levels are from 0 to 7, so subtract 1 to convert */ syslog(rte_log_cur_msg_loglevel() - 1, "%.*s", (int)size, buf); -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-05-10 23:59:27.829381300 +0800 +++ 0045-log-linux-make-default-output-stderr.patch 2021-05-10 23:59:26.390000000 +0800 @@ -1 +1 @@ -From 5988725d0efeb7021670986aafeb3ff3d87839e1 Mon Sep 17 00:00:00 2001 +From d43987787c0257694974864963d8b420ee4f89dd Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Luca Boccassi + +[ upstream commit 5988725d0efeb7021670986aafeb3ff3d87839e1 ] @@ -16 +18,0 @@ -Cc: stable@dpdk.org