i386,amd64: installboot.c: fix disklabel magic fmt

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

i386,amd64: installboot.c: fix disklabel magic fmt

Alexey Dobriyan-2
--- sys/arch/amd64/stand/installboot/installboot.c
+++ sys/arch/amd64/stand/installboot/installboot.c
@@ -162,7 +162,7 @@ main(int argc, char *argv[])
 
  /* Check disklabel. */
  if (dl.d_magic != DISKMAGIC)
- err(1, "bad disklabel magic=%0x8x", dl.d_magic);
+ err(1, "bad disklabel magic=0x%8x", dl.d_magic);
 
  /* Warn on unknown disklabel types. */
  if (dl.d_type == 0)
--- sys/arch/i386/stand/installboot/installboot.c
+++ sys/arch/i386/stand/installboot/installboot.c
@@ -158,7 +158,7 @@ main(int argc, char *argv[])
 
  /* Check disklabel. */
  if (dl.d_magic != DISKMAGIC)
- err(1, "bad disklabel magic=%0x8x", dl.d_magic);
+ err(1, "bad disklabel magic=0x%8x", dl.d_magic);
 
  /* Warn on unknown disklabel types. */
  if (dl.d_type == 0)