sample: sip_svc: fix filter and printk formatting

Rename sample.yml and fix build and filtering.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2024-08-30 10:57:54 -04:00 committed by Carles Cufí
parent c5dd2c2a84
commit bbb63d8aca
2 changed files with 8 additions and 6 deletions

View File

@ -6,13 +6,15 @@ common:
- intel_socfpga_agilex_socdk
tests:
sample.subsys.sip_svc:
tags: subsys
tags:
- sipsvc
platform_allow:
- intel_socfpga_agilex_socdk
integration_platforms:
- intel_socfpga_agilex_socdk
harness: console
harness_config:
type: one_line
ordered: true
regex:
- "Got response of transaction id 0x[0-9a-f][0-9a-f] and voltage is [0-9].[0-9]+v"
filter: CONFIG_ARM_SIP_SVC_HAS_INTEL_SDM_MAILBOX_FIFO
integration_platforms:
- intel_socfpga_agilex_socdk

View File

@ -104,8 +104,8 @@ int main(void)
/* Voltage is retrieved as a fixed point number with 16 bits below binary point */
voltage = ((float)priv.voltage_channel0 / 65536);
printk("Got response of transaction id 0x%02x and voltage is %fv\n", trans_id,
voltage);
printk("Got response of transaction id 0x%02x and voltage is %fv\n",
trans_id, (double)voltage);
err = sip_svc_close(mb_smc_ctrl, mb_c_token, NULL);
__ASSERT(err != SIP_SVC_ID_INVALID, "Failed to close with sip_svc");