Skip to content

Commit a15a47d

Browse files
Andrew Boieandrewboie
authored andcommitted
samples: shared_mem: 64-bit fixes
We don't need this cast, just use %p format code. Signed-off-by: Andrew Boie <[email protected]>
1 parent 69d47c1 commit a15a47d

File tree

1 file changed

+3
-3
lines changed
  • samples/userspace/shared_mem/src

1 file changed

+3
-3
lines changed

samples/userspace/shared_mem/src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ void main(void)
116116
K_FOREVER);
117117
k_thread_access_grant(tENC, &allforone);
118118
/* use K_FOREVER followed by k_thread_start*/
119-
printk("ENC Thread Created %08X\n", (unsigned int) tENC);
119+
printk("ENC Thread Created %p\n", tENC);
120120
k_mem_domain_init(&dom1, 3, dom1_parts);
121121
printk("Partitions added to dom1\n");
122122
k_mem_domain_add_thread(&dom1, tENC);
@@ -128,7 +128,7 @@ void main(void)
128128
-1, K_USER,
129129
K_FOREVER);
130130
k_thread_access_grant(tPT, &allforone);
131-
printk("PT Thread Created %08X\n", (unsigned int) tPT);
131+
printk("PT Thread Created %p\n", tPT);
132132
k_mem_domain_init(&dom0, 2, dom0_parts);
133133
k_mem_domain_add_thread(&dom0, tPT);
134134
printk("dom0 Created\n");
@@ -138,7 +138,7 @@ void main(void)
138138
-1, K_USER,
139139
K_FOREVER);
140140
k_thread_access_grant(tCT, &allforone);
141-
printk("CT Thread Created %08X\n", (unsigned int) tCT);
141+
printk("CT Thread Created %p\n", tCT);
142142
k_mem_domain_init(&dom2, 2, dom2_parts);
143143
k_mem_domain_add_thread(&dom2, tCT);
144144
printk("dom2 Created\n");

0 commit comments

Comments
 (0)