Message ID | 20231120175357.219142-1-volodymyr_babchuk@epam.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <xen-devel-bounces@lists.xenproject.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 620ECC197A0 for <xen-devel@archiver.kernel.org>; Mon, 20 Nov 2023 17:55:22 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.637153.992909 (Exim 4.92) (envelope-from <xen-devel-bounces@lists.xenproject.org>) id 1r58UB-0002Yx-6w; Mon, 20 Nov 2023 17:55:03 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 637153.992909; Mon, 20 Nov 2023 17:55:03 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from <xen-devel-bounces@lists.xenproject.org>) id 1r58UB-0002Yq-3x; Mon, 20 Nov 2023 17:55:03 +0000 Received: by outflank-mailman (input) for mailman id 637153; Mon, 20 Nov 2023 17:55:01 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from <SRS0=WhrZ=HB=epam.com=prvs=56889b6e60=volodymyr_babchuk@srs-se1.protection.inumbo.net>) id 1r58U9-0002Yk-5x for xen-devel@lists.xenproject.org; Mon, 20 Nov 2023 17:55:01 +0000 Received: from mx0a-0039f301.pphosted.com (mx0a-0039f301.pphosted.com [148.163.133.242]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id eb8482f8-87cd-11ee-98e0-6d05b1d4d9a1; Mon, 20 Nov 2023 18:54:59 +0100 (CET) Received: from pps.filterd (m0174679.ppops.net [127.0.0.1]) by mx0a-0039f301.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AKHjlpl005009; Mon, 20 Nov 2023 17:54:56 GMT Received: from eur01-db5-obe.outbound.protection.outlook.com (mail-db5eur01lp2050.outbound.protection.outlook.com [104.47.2.50]) by mx0a-0039f301.pphosted.com (PPS) with ESMTPS id 3ug8f7h79b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Nov 2023 17:54:56 +0000 Received: from VI1PR03MB3710.eurprd03.prod.outlook.com (2603:10a6:803:31::18) by DU0PR03MB9421.eurprd03.prod.outlook.com (2603:10a6:10:418::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.26; Mon, 20 Nov 2023 17:54:52 +0000 Received: from VI1PR03MB3710.eurprd03.prod.outlook.com ([fe80::8e03:368:1fd7:1822]) by VI1PR03MB3710.eurprd03.prod.outlook.com ([fe80::8e03:368:1fd7:1822%6]) with mapi id 15.20.7002.026; Mon, 20 Nov 2023 17:54:52 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion <xen-devel.lists.xenproject.org> List-Unsubscribe: <https://lists.xenproject.org/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xenproject.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xenproject.org> List-Help: <mailto:xen-devel-request@lists.xenproject.org?subject=help> List-Subscribe: <https://lists.xenproject.org/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xenproject.org?subject=subscribe> Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" <xen-devel-bounces@lists.xenproject.org> X-Inumbo-ID: eb8482f8-87cd-11ee-98e0-6d05b1d4d9a1 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L51UDomAnVJsNXBi8KhcC1OLsCOocjzHgjCZh6Ev0hjILrNesvSzJGv84g9RnC1fzKZIx1CC8sxKXI0b53Vi/n8WkGiRUagbNnCqzMA4WCU00GWrASqVLEjJw6GNzb06sKcAo395hZgMsoQbmQgxrj5TOcY/IJ0xf48fMUuRZw3tvn+ANaq0YtUtJMwR7h8UVohXi42eCQl4gotftn4kkHBIddelMPZXTwssn9i43GGAPwLPxJceJ+2l07uCRTJ6Wl+kGxf7V1nyX9LhlUWbhjJLL22b3asvLdcMGZnmGBE40eYWQv/7Y+Q8MY6Ycw+vhYCvYqLYWyxPi2WyxNzo4g== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Kve1c783C17rBE+5Qbtqf0zjZhg6w19eo7cPFwsG0TM=; b=Fv0w4FnmiH8h186jTL5Xv1gTitfhUZaRqks8a4/7pzLPU7eoMOT1ALABaI5g677PXgPWCDx/v/yJv/xG5CZVVVEXWpsWwrwwTJmx9Iz/yG6pzvPquGftEpLUoxflQD1+oFk2pbfxKXSijkqB6qAz+x7njaK84R15Ou3U6S9mo+IW4VJVF2jLTOtUEQeYYp6zXcZVdwN3EgjN4HTZrxflOLPI28cVrO2jT2x5ViDkPIDYXlRRo808AzeWwR2oRTjdr2hhOnVkMzJxnth4ZFdDstperQeGoaASZG4jJYf8l9MwZaekjI9QZUg8A/1Mkv48jkMSVBRJVK6DTTpd1Ib3uQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=epam.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Kve1c783C17rBE+5Qbtqf0zjZhg6w19eo7cPFwsG0TM=; b=FkuYD3nVOlazf4KBUQxCV0qenPCwsGMFgYVSmthAJIvl3E17SfSSJQujFRiJW/kQeU8MdaG5nqD9BHq9dC3WKxlwi5j1HJjCO/cbU9NhKg3Lk5tJzT4vCgF8JhOPEKB3MbCg6tOZDCWWHU0HED128jaYLBDuay6KSh3csSOIVHM+eUTQ/N6UYFJSAef5tFusYRpmLXeTWTOT2DBMCxMOZ7clPPoQlr89GKr1Csnb/G5nXSJvzJdWx+jQzEUCvlNWTyMUs4FyD6ckwdCyoPuNGs5nLSbQ2b0VpR2gFDxn0Job+mDnvNxk8QXaNcPcH1ISrS4F0KHE9QH91eNVzwkrkg== From: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com> To: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org> CC: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>, Wei Liu <wl@xen.org>, Juergen Gross <jgross@suse.com>, Julien Grall <julien@xen.org>, Anthony PERARD <anthony.perard@citrix.com> Subject: [PATCH] xenstored: use correct conversion specifier in the tracing function Thread-Topic: [PATCH] xenstored: use correct conversion specifier in the tracing function Thread-Index: AQHaG9qpkpU9N65Obkmv1tQPzqtBKQ== Date: Mon, 20 Nov 2023 17:54:52 +0000 Message-ID: <20231120175357.219142-1-volodymyr_babchuk@epam.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.42.0 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: VI1PR03MB3710:EE_|DU0PR03MB9421:EE_ x-ms-office365-filtering-correlation-id: 7a3ab0e3-9a69-4fed-e66d-08dbe9f1cc05 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: s9IvvUwsnhWmaEwzCF/BkCkb12fIwNAgtvrNBg0Oca0q62D0gfBG4yxKJ2hQ7kIbUwVc+TKygjohNxCmdtdH73m6/tKh3aLR5s6Zo4P6ycnkG5mQKD7hmY4GgNuMSanytOJ4mfO5v3rU2dMBCs1a0n7oUX73SNZOekYDtnrhljP2LeUXajpmTHIFf791cy1pj3fl4SYhKu/UU1ncvjMtL2M6DLIwC0uRg5ozz5Zwy7WUYxsYA6E6zP1GJ7UibeKC/yIrm+I1Qf7LD6IN4BhxiyLBnTnSboriaz23WrPzf2oUu4Z+2qlHseoLtoSaXhIhxyc76v+tvUnT80WrutJsCC/ouCdW+gIP5aKm6Vt7jNv2swr0DleI+wyzDwQNgO3MfsIeFeuMe6WvTpCPsquV8i5Lw3rbLWjwRwXhcS1v06bSZVaxADxOx2neiAx5PctvhnpPdlHuq7+VY8bIgz10WyeQ+n+O52jTg+4ZP0yQyOpw2o73QOHpt+G4D+iWJIQisvygXp/mvgIeRR5viJD1HCK+eYCk2r84BJa8b8ng8wSnvxjvSm/W6vk0RxNF4BSVIFqv8YA1x4h29AgbExRdrJ1eZC1tYMwMPpxtvzaTQGOOk8qqzYY4CfjF1r6nOy7L x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR03MB3710.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(366004)(39860400002)(396003)(346002)(136003)(230922051799003)(186009)(64100799003)(451199024)(1800799012)(91956017)(76116006)(66556008)(66946007)(316002)(6916009)(64756008)(66446008)(66476007)(54906003)(26005)(8676002)(4326008)(8936002)(38070700009)(36756003)(38100700002)(41300700001)(122000001)(86362001)(2906002)(4744005)(5660300002)(55236004)(83380400001)(6506007)(6486002)(478600001)(6512007)(1076003)(2616005)(71200400001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?qiACC6tj+OxSP1rEFJAU/Rt?= =?iso-8859-1?q?nsPVF6C5XkkWhRaEqvA1IRrfXDZdpR4P6FAU9DkBXeNwh+gdvG/RMC54Z/qK?= =?iso-8859-1?q?d7v+393pXLHlP9D9ajlHNgQEArW+2B7Cv162KV2DmdfmbYuCVk4AHqzOoGKI?= =?iso-8859-1?q?48gJ9lbeBLhHOanUqbg8IuIalg6xe8Hp9b9rWa/WwnGo/wVc84rY2VztrrzH?= =?iso-8859-1?q?QA/T99SSFn0RvnD8A4IJErB9ZJlNWCfirfeqpZins2hxHi6cBGir2uyjnNBu?= =?iso-8859-1?q?RlDD3OPUIceacfFXVonZzReG0fH3nhwLUKhI7RRtG7q+lY6NJPAifXM58oqf?= =?iso-8859-1?q?WVbnwQ4SconumCBD9Pps0yqIb4Uj3VCbnFi817Cw95Bcw4c5POPROM4FJ9Lr?= =?iso-8859-1?q?TmrkiRns6Fh0pv5rGzpcoC+lkJHC6DWswMlKFgKXr1yrQV4F3rEm4P1Nw6nh?= =?iso-8859-1?q?cEqW8SS6lSmFkAqq+YQ/ZpHUDgz9paK/5csq6At4iZe0qk2XZ1ZnF6aEId7c?= =?iso-8859-1?q?1xfuoma0Eslpl5Z6ZqKJ0KgLsgkKQqQwXIr+PKeyeDldJIXI+msVPgyh+bu3?= =?iso-8859-1?q?TS5gdMItdtTu05GTHRLI89dqsy2q8J25hXPlLHnVSBHyD/x2Q86a4IAxp22U?= =?iso-8859-1?q?SzhQ37Gfo9GIHJHMCfzmIVNmhNGOF4EwM+eO3qxO+69nMgj3suaEXXW+pz4R?= =?iso-8859-1?q?HcuwK7HY+DkRUKFjar1p1EcgD0rSkEiBGmldmVHtwtHli7GFArUWeN1wFzFE?= =?iso-8859-1?q?Rx0SF0xd5mnEcTC+0QQSjxdgL2wtEwBsRg45048ai5eyeduDM6MTgdtfaDoW?= =?iso-8859-1?q?C58uggsEXYs4x9GwPdB6yNed51e4b5YfPB66ht62NZOebJZMrN88uS1KRsci?= =?iso-8859-1?q?otO/JR+l4/KKriGS09LQpuwgn7PW/j0qEQHwS/MvC0/XhHQBQ4Wi+pCGGiNE?= =?iso-8859-1?q?SoIzyJfCxOsnK6n3riB2QkkahqDZ9HuWW/DpKclcPGa2SqsqaX5f0mlGu4pH?= =?iso-8859-1?q?TKggd8vG1BLJ7p5icfpJxAvmW7VlGC2DOgk8OgZ+OtSMA8eQMAKzKSKKc3qw?= =?iso-8859-1?q?gVpmjO6U94EYVV0Wu5qMtC+gqup/eFIy3og0De9eRAHXKA34G9VrDyR5qSY1?= =?iso-8859-1?q?8KMAx22qoqm7uOIM83oa7y+wRpOLRt5rC7I765GRTndWUng2UoMKlvpoYq+d?= =?iso-8859-1?q?FHMSAe4F2Yv9GV8ci+PL0nHDR63BgOmWF1Hx94tJVZCEpCl5ur7ScrlkbOoB?= =?iso-8859-1?q?27oIFYUV5Nrno9mqX2qS4PspJ5WXkIpVGiScHJ8bNNyAoSJv8hykyNM1ts+I?= =?iso-8859-1?q?nmi+jfD6afAJezka27G+pY6xHcl8jNbq6Nhf4Wp+X5+k74HWpqUDJ2QxQLpJ?= =?iso-8859-1?q?0m1yHJ9k92FCbiWgPtL53IkTz1E7CvnLFqc96Sy4TJKkqFa5LPsOCoATjYky?= =?iso-8859-1?q?rXXEpMBZ7uyEoxq6ya/yr+YNpxF+V9Y8bJsI6ibfiQ+u9zCXl093LtkC5CQH?= =?iso-8859-1?q?Lgu/OTkqHGOIBqenvJAikS4FYNslSY5gyEnekb5yA5JI9xulzUUL/fsGW1zC?= =?iso-8859-1?q?3eT5//TWUlB8ME2mzjkMpHNHDJGIDnr0kY2KIw62w3Fi7ojOjHry+ZRX9ocU?= =?iso-8859-1?q?CBlYAWa+4b225pnNbAirMKem9fs1NWiDysZfjug=3D=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR03MB3710.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7a3ab0e3-9a69-4fed-e66d-08dbe9f1cc05 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Nov 2023 17:54:52.2052 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: EF2UW2eFiz/YGKFLXSuKALIYM6JUHcEIGy+qULWd7//q+NHFbCGNy2dFL4mZAYO/Fjshez8Yg10u4V4CFxiHaKuLC04Fyx8gaGipe5yT76U= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR03MB9421 X-Proofpoint-ORIG-GUID: 58HyNEcjv5fV71zXVRjN0XiY-qCMtleP X-Proofpoint-GUID: 58HyNEcjv5fV71zXVRjN0XiY-qCMtleP X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-20_17,2023-11-20_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 adultscore=0 bulkscore=0 suspectscore=0 mlxlogscore=670 malwarescore=0 priorityscore=1501 spamscore=0 clxscore=1015 mlxscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311200127 |
Series |
xenstored: use correct conversion specifier in the tracing function
|
expand
|
On 20.11.23 18:54, Volodymyr Babchuk wrote: > Previous change to xenstored used "%d" to format conn->id while in fact > conn->id has "unsigned int" type, so "%u" should be used. > > Fixes: 97f8555acbf3 ("xenstored: print domain id in traces") > Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com> Reviewed-by: Juergen Gross <jgross@suse.com> Juergen
diff --git a/tools/xenstored/core.c b/tools/xenstored/core.c index 311764eb0c..184b130d12 100644 --- a/tools/xenstored/core.c +++ b/tools/xenstored/core.c @@ -135,7 +135,7 @@ static void trace_io(const struct connection *conn, now = time(NULL); tm = localtime(&now); - trace("io: %s %p (d%d) %04d%02d%02d %02d:%02d:%02d %s (", + trace("io: %s %p (d%u) %04d%02d%02d %02d:%02d:%02d %s (", out ? "OUT" : "IN", conn, conn->id, tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec,
Previous change to xenstored used "%d" to format conn->id while in fact conn->id has "unsigned int" type, so "%u" should be used. Fixes: 97f8555acbf3 ("xenstored: print domain id in traces") Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com> --- tools/xenstored/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)