From: Ian Jackson Subject: Re: [PATCH] tools/toollog: Drop XTL_NEW_LOGGER() Date: Tue, 19 Jan 2016 17:15:19 +0000 Message-ID: <22174.28455.949231.257126@mariner.uk.xensource.com> References: <1452802425-32603-1-git-send-email-andrew.cooper3@citrix.com> <1453220650.29930.107.camel@citrix.com> <569E66F8.2020407@citrix.com> <1453223091.26343.12.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1453223091.26343.12.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Andrew Cooper , Wei Liu , Xen-devel List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [PATCH] tools/toollog: Drop XTL_NEW_LOGGER()"): > The underlying issue with all of these is the _undocumented_ nature of the > assumptions, which is certainly a bug, however those assumptions are not in > themselves "unreasonable" as was claimed. Maybe I should submit a counter-patch providing documentation. > > If vtable isn't the first element in the structure, it follows a wild > > pointer on error. This could be fixed. > Thank you. Both of these and the lack of documentation should have been > spelled out in the original commit message as reasons for the removal. > BTW your patch removes the logging on failure to allocate, which should > either be fixed or called out in the commit message. I don't think this is a good idea. Ian.