Re: [PATCH v2] virtio: Add function name to error messages

2025-09-22 Thread Daniel P . Berrangé
On Mon, Sep 22, 2025 at 12:37:57PM +0200, Markus Armbruster wrote: > Alessandro Ratti writes: > > > Replace virtio_error() with a macro that automatically prepends the > > calling function name to error messages. This provides better context > > for debugging virtio issues by showing exactly whic

Re: [PATCH v2] virtio: Add function name to error messages

2025-09-22 Thread Markus Armbruster
Alessandro Ratti writes: > On Mon, 22 Sept 2025 at 14:29, Markus Armbruster wrote: >> >> Alex Bennée writes: >> >> > Daniel P. Berrangé writes: >> > >> >> On Mon, Sep 22, 2025 at 12:37:57PM +0200, Markus Armbruster wrote: >> >>> Alessandro Ratti writes: >> >>> >> >>> > Replace virtio_error()

Re: [PATCH v2] virtio: Add function name to error messages

2025-09-22 Thread Markus Armbruster
Alex Bennée writes: > Daniel P. Berrangé writes: > >> On Mon, Sep 22, 2025 at 12:37:57PM +0200, Markus Armbruster wrote: >>> Alessandro Ratti writes: >>> >>> > Replace virtio_error() with a macro that automatically prepends the >>> > calling function name to error messages. This provides bette

[PATCH v2] virtio: Add function name to error messages

2025-09-22 Thread Alessandro Ratti
> > For completeness you could also fixup: > > > > virtio_error(vdev, "%s: %d reason unknown", __func__, pnd->reason); > > > > for virtio-ballon. Otherwise: > > > > Reviewed-by: Alex Bennée > > Thank you for your review. > I've missed that. For completeness, I've sent out a v2 that removes th

Re: [PATCH v2] virtio: Add function name to error messages

2025-09-22 Thread Alex Bennée
Daniel P. Berrangé writes: > On Mon, Sep 22, 2025 at 12:37:57PM +0200, Markus Armbruster wrote: >> Alessandro Ratti writes: >> >> > Replace virtio_error() with a macro that automatically prepends the >> > calling function name to error messages. This provides better context >> > for debugging v

Re: [PATCH v2] virtio: Add function name to error messages

2025-09-22 Thread Markus Armbruster
Alessandro Ratti writes: > Replace virtio_error() with a macro that automatically prepends the > calling function name to error messages. This provides better context > for debugging virtio issues by showing exactly which function > encountered the error. > > Before: "Invalid queue size: 1024" >

[PATCH v2] virtio: Add function name to error messages

2025-09-15 Thread Alessandro Ratti
Replace virtio_error() with a macro that automatically prepends the calling function name to error messages. This provides better context for debugging virtio issues by showing exactly which function encountered the error. Before: "Invalid queue size: 1024" After: "virtio_queue_set_num: Invalid q