* [dts] [PATCH] framework: fix not convert port numa to int
@ 2015-01-27 0:38 Yong Liu
2015-01-27 3:33 ` Qiu, Michael
0 siblings, 1 reply; 2+ messages in thread
From: Yong Liu @ 2015-01-27 0:38 UTC (permalink / raw)
To: dts
Signed-off-by: Marvinliu <yong.liu@intel.com>
---
framework/config.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/framework/config.py b/framework/config.py
index 140c84b..948609a 100755
--- a/framework/config.py
+++ b/framework/config.py
@@ -79,7 +79,10 @@ class UserConf():
for param in port.split(','):
(key, _, value) = param.partition('=')
- portDict[key] = value
+ if key == 'numa':
+ portDict[key] = int(value)
+ else:
+ portDict[key] = value
return portDict
--
1.9.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH] framework: fix not convert port numa to int
2015-01-27 0:38 [dts] [PATCH] framework: fix not convert port numa to int Yong Liu
@ 2015-01-27 3:33 ` Qiu, Michael
0 siblings, 0 replies; 2+ messages in thread
From: Qiu, Michael @ 2015-01-27 3:33 UTC (permalink / raw)
To: Liu, Yong, dts
On 1/27/2015 8:39 AM, Yong Liu wrote:
> Signed-off-by: Marvinliu <yong.liu@intel.com>
> ---
> framework/config.py | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/framework/config.py b/framework/config.py
> index 140c84b..948609a 100755
> --- a/framework/config.py
> +++ b/framework/config.py
> @@ -79,7 +79,10 @@ class UserConf():
>
> for param in port.split(','):
> (key, _, value) = param.partition('=')
> - portDict[key] = value
> + if key == 'numa':
> + portDict[key] = int(value)
> + else:
> + portDict[key] = value
> return portDict
>
>
Acked-by: Michael Qiu <michael.qiu@intel.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-27 3:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-27 0:38 [dts] [PATCH] framework: fix not convert port numa to int Yong Liu
2015-01-27 3:33 ` Qiu, Michael
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).