Skip to content

Commit 6d5614e

Browse files
committed
darwin: fix some printf format warnings
Signed-off-by: Brice Goglin <[email protected]>
1 parent 73a5667 commit 6d5614e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hwloc/topology-darwin.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ static void hwloc__darwin_look_perflevel_caches(struct hwloc_topology *topology,
500500
snprintf(name, sizeof(name), "hw.perflevel%u.l2perflevels", level);
501501
if (!sysctlbyname(name, NULL, &s, NULL, 0))
502502
if (HWLOC_SHOW_ALL_ERRORS())
503-
fprintf(stderr, "hwloc/darwin: key %s succeeded size %lu, please report to hwloc developers.\n", name, s);
503+
fprintf(stderr, "hwloc/darwin: key %s succeeded size %lu, please report to hwloc developers.\n", name, (unsigned long) s);
504504
}
505505

506506
/* assume PUs are contigous for now. */
@@ -531,7 +531,7 @@ static void hwloc__darwin_look_perflevel_caches(struct hwloc_topology *topology,
531531
snprintf(name, sizeof(name), "hw.perflevel%u.l3perflevels", level);
532532
if (!sysctlbyname(name, NULL, &s, NULL, 0))
533533
if (HWLOC_SHOW_ALL_ERRORS())
534-
fprintf(stderr, "hwloc/darwin: key %s succeeded size %lu, please report to hwloc developers.\n", name, s);
534+
fprintf(stderr, "hwloc/darwin: key %s succeeded size %lu, please report to hwloc developers.\n", name, (unsigned long) s);
535535
}
536536

537537
hwloc__darwin_build_perflevel_cache_level(topology, cpuset, cpus, HWLOC_OBJ_L3CACHE, 3, size, linesize);

0 commit comments

Comments
 (0)