summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-05-01 18:10:02 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-05-01 18:10:02 +0200
commitc45debba6db569282d30fc04446e215608bd2d58 (patch)
treee2bafa88898922779123cff80cc824c46193a56b
parent0d038c3e886f4fbe470af2fb6d30d8b68d4b47bd (diff)
Fix a warning in Linux software RAID md
-rw-r--r--src/md.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/md.c b/src/md.c
index b3b75b3..2539114 100644
--- a/src/md.c
+++ b/src/md.c
@@ -204,10 +204,10 @@ int set_MD_info(disk_t *disk_car, const struct mdp_superblock_s *sb, partition_t
{
const struct mdp_superblock_1 *sb1=(const struct mdp_superblock_1 *)sb;
set_part_name(partition,sb1->set_name,32);
- sprintf(partition->info,"md %u.x Raid %u - Array Slot : %d (",
+ sprintf(partition->info,"md %u.x Raid %u - Array Slot : %lu (",
(unsigned int)le32(sb1->major_version),
(unsigned int)le32(sb1->level),
- le32(sb1->dev_number));
+ (long unsigned)le32(sb1->dev_number));
for (i= le32(sb1->max_dev); i> 0 ; i--)
if (le16(sb1->dev_roles[i-1]) != 0xffff)
break;