[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/2] tools/xl: allow split_string_into_pair() to trim values


  • To: Jason Andryuk <jandryuk@xxxxxxxxx>
  • From: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Date: Tue, 21 Mar 2023 10:24:10 +0000
  • Authentication-results: esa6.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: Juergen Gross <jgross@xxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Tue, 21 Mar 2023 10:24:32 +0000
  • Ironport-data: A9a23:zYrTq64Q2Y7SPGnfxXTY/wxRtCPHchMFZxGqfqrLsTDasY5as4F+v jNMUTqOPfyNMWv9KYt3YYi//EkO6J/cxtRjTlM4+XsyHi5G8cbLO4+Ufxz6V8+wwm8vb2o8t plDNYOQRCwQZiWBzvt4GuG59RGQ7YnRGvynTraCYnsrLeNdYH9JoQp5nOIkiZJfj9G8Agec0 fv/uMSaM1K+s9JOGjt8B5mr9VU+7JwehBtC5gZlPasR5QeH/5UoJMl3yZ+ZfiOQrrZ8RoZWd 86bpJml82XQ+QsaC9/Nut4XpWVTH9Y+lSDX4pZnc/DKbipq/0Te4Y5iXBYoUm9Fii3hojxE4 I4lWapc6+seFvakdOw1C3G0GszlVEFM0OevzXOX6aR/w6BaGpdFLjoH4EweZOUlFuhL7W5my vIJdzMoNAG6tdmLkZW4RetPoPkjFZy+VG8fkikIITDxCP8nRdbIQrnQ5M8e1zA17ixMNa+AP YxDM2MpNUmeJUQVYT/7C7pn9AusrnD5bz1frkPTvact6nLf5AdwzKLsIJzefdniqcB9xx7B/ j6YpDyiav0cHNrP4AqP7SyPv+vCrAXSBdNOSbP/1sc/1TV/wURMUUZLBDNXu8KRlUqWS99Zb UsO9UIGpLA/7kWxQvHhXhezpziPuRt0c8pdFag25R+AzoLQ4h2FHS4UQzhZctskucQqAzsw2 TehndrvCSZ+rb69RneU97PSpjS3UQAXInUFfjQsVhYe7p/op4Rbs/7UZo89Sujv1ISzQGyuh WnQ90DSmon/k+Y02bTk/nWdkguenaWYaQ065CbxY2Kcu1YRiJGeW2C41bTKxa8ec9fCEATR5 SNsd9u2t75XU8zU/MCZaKBURezyua7YWNHJqQQ3d6TN4QhB7JJKkWp4xDhlbHlkPc8fEdMCS B+C4FgBjHO/0ZbDUEOWX25SI55wpUQYPY65Ps04l/IXCnSLSCeJ/Tt1eWmb1H33nU4nnMkXY MnEIJ33Ui5EUvw3llJaotvxN5dxnkgDKZ77H8inn3xLLoZylFbKEOxYYTNin8gy7b+eoRW9z uuzw/Cikk0FOMWnO3G/2ddKfTg3wY0TWMmeRzp/LbXYfGKL2QgJVpfs/F/WU9U4wv8PzbuYo BlQmCZwkTLCuJEOEi3SAlgLVV8ldc8XQa4TVcD0AWuV5g==
  • Ironport-hdrordr: A9a23:b96nqa/r6KvHlSM04QZuk+DPI+orL9Y04lQ7vn2ZLiYlEfBw9v rPoB1/73SftN9/Yh8dcK+7Scy9qB/nmaKdgrN9AV7BZniFhILAFugL0WKI+Vzd8kPFmdK13J 0QF5RDNA==
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Mon, Mar 20, 2023 at 01:05:13PM -0400, Jason Andryuk wrote:
> On Fri, Mar 17, 2023 at 7:16 AM Juergen Gross <jgross@xxxxxxxx> wrote:
> >
> > Most use cases of split_string_into_pair() are requiring the returned
> > strings to be white space trimmed.
> >
> > In order to avoid the same code pattern multiple times, add a predicate
> > parameter to split_string_into_pair() which can be specified to call
> > trim() with that predicate for the string pair returned. Specifying
> > NULL for the predicate will avoid the call of trim().
> >
> > Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
> 
> Reviewed-by: Jason Andryuk <jandryuk@xxxxxxxxx>

Acked-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>

Thanks,

-- 
Anthony PERARD



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.