From bbb63d8aca4dfbf42d9ff039dc8c9cf837806713 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Fri, 30 Aug 2024 10:57:54 -0400 Subject: [PATCH] sample: sip_svc: fix filter and printk formatting Rename sample.yml and fix build and filtering. Signed-off-by: Anas Nashif --- samples/subsys/sip_svc/{sample.yml => sample.yaml} | 10 ++++++---- samples/subsys/sip_svc/src/main.c | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) rename samples/subsys/sip_svc/{sample.yml => sample.yaml} (84%) 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");