Skip to content

Commit

Permalink
Use G_GUINT64_FORMAT in TCRYPT device name
Browse files Browse the repository at this point in the history
  • Loading branch information
segfault3 committed Mar 20, 2018
1 parent e874152 commit 77818e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/udiskslinuxencrypted.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ handle_unlock (UDisksEncrypted *encrypted,
name = g_strdup_printf ("luks-%s", udisks_block_get_id_uuid (block));
else
/* TCRYPT devices don't have a UUID, so we use the device number instead */
name = g_strdup_printf ("tcrypt-%lu", udisks_block_get_device_number (block));
name = g_strdup_printf ("tcrypt-%" G_GUINT64_FORMAT, udisks_block_get_device_number (block));
}

/* save old encryption type to be able to restore it */
Expand Down

0 comments on commit 77818e0

Please sign in to comment.