OSDN Git Service

block/nvme: Report warning with warn_report()
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 29 Oct 2020 09:32:44 +0000 (10:32 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 3 Nov 2020 19:06:20 +0000 (19:06 +0000)
commit58ad6ae0cbad626bd574bc1347f210a35a8316eb
treeef5cd3ab0db65763aae4814bfab0e4404a6261ba
parent8526e39e9974228f937d04e8eae140add8b17b43
block/nvme: Report warning with warn_report()

Instead of displaying warning on stderr, use warn_report()
which also displays it on the monitor.

Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20201029093306.1063879-4-philmd@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
block/nvme.c