Skip to content

Commit 3ab9e69

Browse files
committed
libblkid: topology: allow setting of 64bit values
1 parent e374978 commit 3ab9e69

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libblkid/src/topology/topology.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static void topology_free(blkid_probe pr __attribute__((__unused__)),
207207
}
208208

209209
static int topology_set_value(blkid_probe pr, const char *name,
210-
size_t structoff, unsigned long data)
210+
size_t structoff, unsigned long long data)
211211
{
212212
struct blkid_chain *chn = blkid_probe_get_chain(pr);
213213

@@ -220,7 +220,7 @@ static int topology_set_value(blkid_probe pr, const char *name,
220220
memcpy((char *) chn->data + structoff, &data, sizeof(data));
221221
return 0;
222222
}
223-
return blkid_probe_sprintf_value(pr, name, "%lu", data);
223+
return blkid_probe_sprintf_value(pr, name, "%llu", data);
224224
}
225225

226226

0 commit comments

Comments
 (0)