Re: [PATCH v2] scripts/qmp/qom-set: Allow setting integer value

2020-10-04 Thread Philippe Mathieu-Daudé
On 10/4/20 1:55 AM, John Snow wrote: > On 10/3/20 1:33 PM, Philippe Mathieu-Daudé wrote: >> Hi Jonatan, >> >> On 10/2/20 10:52 PM, Jonatan Pålsson wrote: >>> If the value appears to be an integer, parse it as such. >>> >>> This allows the following: >>> >>> qmp/qom-set -s ~/qmp.sock sensor.tem

Re: [PATCH v2] scripts/qmp/qom-set: Allow setting integer value

2020-10-03 Thread John Snow
On 10/3/20 1:33 PM, Philippe Mathieu-Daudé wrote: Hi Jonatan, On 10/2/20 10:52 PM, Jonatan Pålsson wrote: If the value appears to be an integer, parse it as such. This allows the following: qmp/qom-set -s ~/qmp.sock sensor.temperature 2 Maybe instead: Fix the following error:

Re: [PATCH v2] scripts/qmp/qom-set: Allow setting integer value

2020-10-03 Thread Philippe Mathieu-Daudé
Hi Jonatan, On 10/2/20 10:52 PM, Jonatan Pålsson wrote: > If the value appears to be an integer, parse it as such. > > This allows the following: > > qmp/qom-set -s ~/qmp.sock sensor.temperature 2 Maybe instead: Fix the following error: $ scripts/qmp/qom-set -s ~/qmp.sock sensor.tem

[PATCH v2] scripts/qmp/qom-set: Allow setting integer value

2020-10-02 Thread Jonatan Pålsson
If the value appears to be an integer, parse it as such. This allows the following: qmp/qom-set -s ~/qmp.sock sensor.temperature 2 .. where sensor is a tmp105 device, and temperature is an integer property. Signed-off-by: Jonatan Pålsson --- scripts/qmp/qom-set | 5 - 1 file chang