fix bug in create-image invocation

its arguments require the 0x decorator to define hex,
whereas arguments to xtask don't. A little confusing, but
only if you actually ever call create-image -- which nobody
does, to a first order.
This commit is contained in:
bunnie 2024-03-16 18:34:06 +08:00
parent fdbdea5ab0
commit ced6dd9e63

View file

@ -985,7 +985,7 @@ impl Builder {
}
let swap_spec = if let Some((offset, size)) = self.swap {
format!("{:x}:{:x}", offset, size)
format!("0x{:x}:0x{:x}", offset, size) // create-image requires a base decorator, but the argument into xtask does not.
} else {
String::new()
};