From ced6dd9e635dd993373c279affaadef9f73244a3 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sat, 16 Mar 2024 18:34:06 +0800 Subject: [PATCH] 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. --- xtask/src/builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtask/src/builder.rs b/xtask/src/builder.rs index ec2c2e337..4fb400e7f 100644 --- a/xtask/src/builder.rs +++ b/xtask/src/builder.rs @@ -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() };