hostmem: Fix mem-path property name in error report
PATCH 1/1 hostmem: Fix mem-path property name in error report
The subtle difference between "property not found" and "property not set" is already confusing enough.
Signed-off-by Jan Kiszka <[email protected]>
--- backends/hostmem-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
backends/hostmem-file.c +1 -1
@@ -43,7 +43,7 @@ file_backend_memory_alloc(HostMemoryBackend *backend, Error **errp)return ; }if (!fb->mem_path) { -error_setg (errp,"mem_path property not set" ); +error_setg (errp,"mem-path property not set" );return ; }#ifndef CONFIG_LINUX
Signature · 1 line
2.1.4
Quoted 4 lines · Jan Kiszka
The subtle difference between "property not found" and "property not set" is already confusing enough.
Signed-off-by Jan Kiszka <[email protected]>
Reviewed-by Peter Crosthwaite <[email protected]>
Quoted 20 lines
--- backends/hostmem-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)backends/hostmem-file.c +1
-2@@ -43,7 +43,7 @@ file_backend_memory_alloc(HostMemoryBackend *backend, Error **errp)return ; }if (!fb->mem_path) { -error_setg (errp,"mem_path property not set" ); +error_setg (errp,"mem-path property not set" );return ; }#ifndef CONFIG_LINUX --2.1.4
Michael Tokarev
AppliedQuoted 2 lines · Jan Kiszka
The subtle difference between "property not found" and "property not set" is already confusing enough.
Applied to -trivial, thanks!
/mjt