Re: [PATCH 3/4] conf: Rework formatting

2022-01-04 Thread Peter Krempa
On Tue, Jan 04, 2022 at 09:14:29 +0100, Michal Privoznik wrote: > The element formatting is handled in > virDomainTPMDefFormat() which uses the "old style" - appending > strings directly into the output buffer. With this, it's easy to > get conditions that tell when an element has ended wrong. In

[PATCH 3/4] conf: Rework formatting

2022-01-04 Thread Michal Privoznik
The element formatting is handled in virDomainTPMDefFormat() which uses the "old style" - appending strings directly into the output buffer. With this, it's easy to get conditions that tell when an element has ended wrong. In this particular case, if both and are to be formatted the current code