diff mbox

hostmem: Fix mem-path property name in error report

Message ID 553A8046.7080709@siemens.com
State New
Headers show

Commit Message

Jan Kiszka April 24, 2015, 5:41 p.m. UTC
The subtle difference between "property not found" and "property not
set" is already confusing enough.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 backends/hostmem-file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Peter Crosthwaite April 24, 2015, 7 p.m. UTC | #1
On Fri, Apr 24, 2015 at 10:41 AM, Jan Kiszka <jan.kiszka@siemens.com> wrote:
> The subtle difference between "property not found" and "property not
> set" is already confusing enough.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>

Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>

> ---
>  backends/hostmem-file.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/backends/hostmem-file.c b/backends/hostmem-file.c
> index 5179994..4b55361 100644
> --- a/backends/hostmem-file.c
> +++ b/backends/hostmem-file.c
> @@ -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 April 25, 2015, 6:26 a.m. UTC | #2
24.04.2015 20:41, Jan Kiszka wrote:
> The subtle difference between "property not found" and "property not
> set" is already confusing enough.


Applied to -trivial, thanks!

/mjt
diff mbox

Patch

diff --git a/backends/hostmem-file.c b/backends/hostmem-file.c
index 5179994..4b55361 100644
--- a/backends/hostmem-file.c
+++ b/backends/hostmem-file.c
@@ -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