eal: fix error message for unsupported platforms

Message ID 20180720141310.14753-1-bruce.richardson@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Bruce Richardson
Headers
Series eal: fix error message for unsupported platforms |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Bruce Richardson July 20, 2018, 2:13 p.m. UTC
  When building with meson on e.g. cygwin, the error message about an
unsupported platform referenced an unknown variable since
"host_machine" was missing an "_".

Fixes: 844514c73569 ("eal: build with meson")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
 lib/librte_eal/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Thomas Monjalon July 26, 2018, 8:17 a.m. UTC | #1
20/07/2018 16:13, Bruce Richardson:
> When building with meson on e.g. cygwin, the error message about an
> unsupported platform referenced an unknown variable since
> "host_machine" was missing an "_".
> 
> Fixes: 844514c73569 ("eal: build with meson")
> 
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>

Applied, thanks
  
Thomas Monjalon July 26, 2018, 8:18 a.m. UTC | #2
20/07/2018 16:13, Bruce Richardson:
> When building with meson on e.g. cygwin, the error message about an
> unsupported platform referenced an unknown variable since
> "host_machine" was missing an "_".
> 
> Fixes: 844514c73569 ("eal: build with meson")
> 
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>

Applied, thanks
  

Patch

diff --git a/lib/librte_eal/meson.build b/lib/librte_eal/meson.build
index 259bb4464..98174476c 100644
--- a/lib/librte_eal/meson.build
+++ b/lib/librte_eal/meson.build
@@ -18,7 +18,7 @@  elif host_machine.system() == 'freebsd'
 	subdir('bsdapp/eal')
 
 else
-	error('unsupported system type @0@'.format(hostmachine.system()))
+	error('unsupported system type "@0@"'.format(host_machine.system()))
 endif
 
 version = 7  # the version of the EAL API