Skip to content

Commit bbb63d8

Browse files
nashifcarlescufi
authored andcommitted
sample: sip_svc: fix filter and printk formatting
Rename sample.yml and fix build and filtering. Signed-off-by: Anas Nashif <[email protected]>
1 parent c5dd2c2 commit bbb63d8

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

samples/subsys/sip_svc/sample.yml renamed to samples/subsys/sip_svc/sample.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ common:
66
- intel_socfpga_agilex_socdk
77
tests:
88
sample.subsys.sip_svc:
9-
tags: subsys
9+
tags:
10+
- sipsvc
11+
platform_allow:
12+
- intel_socfpga_agilex_socdk
13+
integration_platforms:
14+
- intel_socfpga_agilex_socdk
1015
harness: console
1116
harness_config:
1217
type: one_line
1318
ordered: true
1419
regex:
1520
- "Got response of transaction id 0x[0-9a-f][0-9a-f] and voltage is [0-9].[0-9]+v"
16-
filter: CONFIG_ARM_SIP_SVC_HAS_INTEL_SDM_MAILBOX_FIFO
17-
integration_platforms:
18-
- intel_socfpga_agilex_socdk

samples/subsys/sip_svc/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ int main(void)
104104
/* Voltage is retrieved as a fixed point number with 16 bits below binary point */
105105
voltage = ((float)priv.voltage_channel0 / 65536);
106106

107-
printk("Got response of transaction id 0x%02x and voltage is %fv\n", trans_id,
108-
voltage);
107+
printk("Got response of transaction id 0x%02x and voltage is %fv\n",
108+
trans_id, (double)voltage);
109109

110110
err = sip_svc_close(mb_smc_ctrl, mb_c_token, NULL);
111111
__ASSERT(err != SIP_SVC_ID_INVALID, "Failed to close with sip_svc");

0 commit comments

Comments
 (0)