From nobody Tue Feb 10 19:48:54 2026 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1575451694; cv=none; d=zohomail.com; s=zohoarc; b=nLWXKe6PhlQ0o4/1JsgrqbuqFL9ttM8snBnI5UpqMFz3AS/l/tDmj9qsrXHeRS9XnN+yZgT8vrxwez20IeP3gOd3BVH7TkodchaFAV/c4k//Qh42SxMfg/Fk2Eql48AE2Adn5Qm07IbtyPm73226VabjNWDYKQVwnxa0WeTpyto= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1575451694; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=bWra2cfAqwiHmZHMOihXmVZ4m+DdF7Az4tm0418b8dA=; b=i4uFboDaBosgvKA00U1HHrRRM+pu4Ycm9+itiD7bwYjSoDaAiMRaLTnAQb5PHJv6yDH3atHVF3s8w8VB6mnyp7/MWi2XW+WmeWmqLgn0j3Ae/X2UstlnIlBVPNcKv34fvBJA4Yr/RWBzaNf+Y6GPXLTVh9O3jbSje5Z/+O/hTLQ= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1575451694855200.7769164115756; Wed, 4 Dec 2019 01:28:14 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1icQwW-0001rx-Oe; Wed, 04 Dec 2019 09:27:32 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1icQwV-0001rC-DB for xen-devel@lists.xenproject.org; Wed, 04 Dec 2019 09:27:31 +0000 Received: from know-smtprelay-omc-1.server.virginmedia.net (unknown [80.0.253.65]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 47955602-1678-11ea-aea8-bc764e2007e4; Wed, 04 Dec 2019 09:27:24 +0000 (UTC) Received: from mail0.xen.dingwall.me.uk ([82.47.84.47]) by cmsmtp with ESMTPA id cQwNiY5hzxs8ecQwNioh3f; Wed, 04 Dec 2019 09:27:23 +0000 Received: from localhost (localhost [IPv6:::1]) by mail0.xen.dingwall.me.uk (Postfix) with ESMTP id 249C2159427; Wed, 4 Dec 2019 09:27:42 +0000 (UTC) Received: from mail0.xen.dingwall.me.uk ([127.0.0.1]) by localhost (mail0.xen.dingwall.me.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uYQc4x1H0yfc; Wed, 4 Dec 2019 09:27:42 +0000 (UTC) Received: from behemoth.dingwall.me.uk (behemoth.dingwall.me.uk [IPv6:2001:470:695c:302::c0a8:105]) by dingwall.me.uk (Postfix) with ESMTP id 98204159417; Wed, 4 Dec 2019 09:27:41 +0000 (UTC) Received: by behemoth.dingwall.me.uk (Postfix, from userid 1000) id A66E6140E1D; Wed, 4 Dec 2019 09:27:41 +0000 (UTC) X-Inumbo-ID: 47955602-1678-11ea-aea8-bc764e2007e4 X-Originating-IP: [82.47.84.47] X-Authenticated-User: james.dingwall@blueyonder.co.uk X-Spam: 0 X-Authority: v=2.3 cv=L98zvdb8 c=1 sm=1 tr=0 a=0bfgdX8EJi0Cr9X0x0jFDA==:117 a=0bfgdX8EJi0Cr9X0x0jFDA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=xqWC_Br6kY4A:10 a=pxVhFHJ0LMsA:10 a=5IRWAbXhAAAA:8 a=YFnRBznFj9VQ1rwjkNEA:9 a=xo7gz2vLY8DhO4BdlxfM:22 X-Virus-Scanned: Debian amavisd-new at dingwall.me.uk From: james-xen@dingwall.me.uk To: xen-devel@lists.xenproject.org Date: Wed, 4 Dec 2019 09:27:39 +0000 Message-Id: <20191204092739.18177-5-james-xen@dingwall.me.uk> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191204092739.18177-1-james-xen@dingwall.me.uk> References: <20191204092739.18177-1-james-xen@dingwall.me.uk> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfKZJoxklV5Q0Crbpl0ZLACJxmaLTqKK6ekPEx8uMnDO5p1kjjD1esGp12wJKNL49IdkWu7Gf7CztIe8p8YMUwMzuIKFOUprkyINvei5hZ1YXg7gtsnRl 5FtC7oEvAQNu+j0pAzSVopzAkwDJG+E603ho9qrM1KK7A9g13YbqQg1D7xjI5wm2evASO8HKBoYuUgcFh65K0Omec8bRgQzAsYtHn8CwyxL+ByavkDOFYH+c cKHD2q24E0ilvqeb+l33P6e5wJVQ+iaquWicJ7YTp5E= Subject: [Xen-devel] [PATCH 4/4] xenstored logging: add minios variant of default_xprintf() X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: wei.liu2@citrix.com, ian.jackson@eu.citrix.com, James Dingwall Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" From: James Dingwall stderr is not available in a xenstore domain. Add a new implementation of default_xprintf() which sends the message to vsyslog() at LOG_ERROR. --- tools/xenstore/utils.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tools/xenstore/utils.c b/tools/xenstore/utils.c index a1ac12584a..7ed05b1970 100644 --- a/tools/xenstore/utils.c +++ b/tools/xenstore/utils.c @@ -8,8 +8,21 @@ #include #include #include +#ifdef __MINIOS__ +#include +#endif #include "utils.h" =20 +#ifdef __MINIOS__ +static void default_xprintf(const char *fmt, ...) +{ + va_list args; + + va_start(args, fmt); + vsyslog(LOG_ERR, fmt, args); + va_end(args); +} +#else static void default_xprintf(const char *fmt, ...) { va_list args; @@ -19,6 +32,7 @@ static void default_xprintf(const char *fmt, ...) va_end(args); fflush(stderr); } +#endif =20 void (*xprintf)(const char *fmt, ...) =3D default_xprintf; =20 --=20 2.24.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel