Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6669FC433DF for ; Wed, 15 Jul 2020 17:00:22 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 3587E205CB for ; Wed, 15 Jul 2020 17:00:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=citrix.com header.i=@citrix.com header.b="aHv4UZE+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3587E205CB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=citrix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jvklO-0007Id-Eq; Wed, 15 Jul 2020 17:00:10 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jvklN-0007IY-4g for xen-devel@lists.xenproject.org; Wed, 15 Jul 2020 17:00:09 +0000 X-Inumbo-ID: a2bddc4e-c6bc-11ea-b7bb-bc764e2007e4 Received: from esa1.hc3370-68.iphmx.com (unknown [216.71.145.142]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id a2bddc4e-c6bc-11ea-b7bb-bc764e2007e4; Wed, 15 Jul 2020 17:00:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1594832409; h=from:mime-version:content-transfer-encoding:message-id: date:to:cc:subject:in-reply-to:references; bh=zkz+mz662VvK3ybS1BY7w6MMW+kanXb3XebXrtv5YAQ=; b=aHv4UZE+zql1drRZKp2Hko11+t91Eey/M1s/L97ISs5gl1fkA2eVx/kn wiU/+Oh5KJpqHvM7qsivpz+/eZgUTTJcGp7a56hZ4eaAdAVTxTCqLFfFw 6BeQaVpm+SJhFK5/h9PWxshN8X56VC/X7bYnRzSteCANZyZVnsJqqYyEI 4=; Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: z2poUUt8oWRQ/JwDI0gFZuklBUQ7DxRSVUsV9KYfu9wO2q0nOVRzU9B8L07TfK1h1YRGb7kFtg p2al74z8XInMoI1lx7jjGGBCawW+ToHeSZ1OpTzc5GOnFs0x/24VoVfjcYHwPUzAU81qdJ3Mgw nVZJTov4FabtcIWiqweNS8BPXBZ4fq84f2e0RyV08TTJJH4oNk1xAz42qP8liyK+jhNAhxeuR4 16kk+5zn6+BlngL7mUAyvA5EZpDKOPtbY2z/YX07RqL/PjmwHXba0wk6BhLza5I4F2aXFlsNZp hbo= X-SBRS: 2.7 X-MesageID: 22775239 X-Ironport-Server: esa1.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.75,355,1589256000"; d="scan'208";a="22775239" From: Ian Jackson MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-ID: <24335.13844.281994.447792@mariner.uk.xensource.com> Date: Wed, 15 Jul 2020 18:00:04 +0100 To: "incoming+61544a64d0c2dc4555813e58f3810dd7@incoming.gitlab.com" , "xen-devel@lists.xenproject.org" Subject: Re: [PATCH 06/12] tools/misc: don't use libxenctrl internals from misc tools In-Reply-To: <20200715162511.5941-8-ian.jackson@eu.citrix.com> References: <20200715162511.5941-1-ian.jackson@eu.citrix.com> <20200715162511.5941-8-ian.jackson@eu.citrix.com> X-Mailer: VM 8.2.0b under 24.5.1 (i686-pc-linux-gnu) X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Juergen Gross , Wei Liu Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Ian Jackson writes ("[PATCH 06/12] tools/misc: don't use libxenctrl internals from misc tools"): > From: Juergen Gross > > xen-hptool and xen-mfndump are using internals from libxenctrl e.g. by > including private headers. Fix that by using either the correct > official headers or use other means. ... > - ERROR("Failed to get the maximum mfn"); > + fprintf(stderr, "Failed to get the maximum mfn"); > return -1; I think this is definitely worse than providing a duplicate definition of ERROR. Also patches like this are much easier to read if the different kinds of change are split up. Do you think you can break it up further ? Thanks, Ian.