diff --git a/samples/subsys/sip_svc/sample.yml b/samples/subsys/sip_svc/sample.yaml similarity index 84% rename from samples/subsys/sip_svc/sample.yml rename to samples/subsys/sip_svc/sample.yaml index a9ac5f42385..c509cd50595 100644 --- a/samples/subsys/sip_svc/sample.yml +++ b/samples/subsys/sip_svc/sample.yaml @@ -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 diff --git a/samples/subsys/sip_svc/src/main.c b/samples/subsys/sip_svc/src/main.c index 40428579259..877f248c797 100644 --- a/samples/subsys/sip_svc/src/main.c +++ b/samples/subsys/sip_svc/src/main.c @@ -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");