]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
parttool/msdospart: grub_error() missing format string argument
authorGlenn Washburn <development@efficientek.com>
Fri, 5 Mar 2021 00:22:33 +0000 (18:22 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Wed, 10 Mar 2021 13:50:44 +0000 (14:50 +0100)
Its obvious from the error message that the variable named "type" was
accidentally omitted.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/parttool/msdospart.c

index dcbf74e3b4206504de949689ed9502f59215fd19..3918caa06ed06479b2dbce39591e8d809a5f7606 100644 (file)
@@ -127,8 +127,7 @@ static grub_err_t grub_pcpart_type (const grub_device_t dev,
     {
       dev->disk->partition = part;
       return grub_error (GRUB_ERR_BAD_ARGUMENT,
-                        N_("the partition type 0x%x isn't "
-                           "valid"));
+                        N_("the partition type 0x%x isn't valid"), type);
     }
 
   mbr.entries[index].type = type;