Skip to content

Commit 8e75610

Browse files
committed
rsmi: remove some warnings on 32bits
Signed-off-by: Brice Goglin <[email protected]>
1 parent 82c0e0a commit 8e75610

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hwloc/topology-rsmi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ static int get_device_unique_id(uint32_t dv_ind, char *buffer)
160160
if (rsmi_rc != RSMI_STATUS_SUCCESS) {
161161
return -1;
162162
}
163-
sprintf(buffer, "%lx", id);
163+
sprintf(buffer, "%llx", (unsigned long long) id);
164164
return 0;
165165
}
166166

@@ -200,7 +200,7 @@ static int get_device_xgmi_hive_id(uint32_t dv_ind, char *buffer)
200200
}
201201
return -1;
202202
}
203-
sprintf(buffer, "%lx", hive_id);
203+
sprintf(buffer, "%llx", (unsigned long long) hive_id);
204204
return 0;
205205
}
206206

0 commit comments

Comments
 (0)