mkbootimg: misc typo fixes
- Fix whitespace in parse_int
- Use two dashes for kernel_offset instead of four
Change-Id: I59667da457d0f0d78a946e543d1aa0aec5e682d5
diff --git a/mkbootimg/mkbootimg b/mkbootimg/mkbootimg
index 1e09f4d..aea2585 100755
--- a/mkbootimg/mkbootimg
+++ b/mkbootimg/mkbootimg
@@ -94,7 +94,7 @@
def parse_int(x):
- return int(x,0)
+ return int(x, 0)
def parse_cmdline():
@@ -106,7 +106,7 @@
parser.add_argument('--cmdline', help='extra arguments to be passed on the '
'kernel command line', default='', action=ValidateStrLenAction, maxlen=1536)
parser.add_argument('--base', help='base address', type=parse_int, default=0x10000000)
- parser.add_argument('----kernel_offset', help='kernel offset', type=parse_int, default=0x00008000)
+ parser.add_argument('--kernel_offset', help='kernel offset', type=parse_int, default=0x00008000)
parser.add_argument('--ramdisk_offset', help='ramdisk offset', type=parse_int, default=0x01000000)
parser.add_argument('--second_offset', help='2nd bootloader offset', type=parse_int,
default=0x00f00000)