From ff3f307a147ee0db2a6d733b87f4f7e342acd9d7 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Thu, 20 Oct 2022 14:11:48 +0800 Subject: [PATCH] tools: read-tags: call output `xous_presign.img` The use of the name `args.bin` is now deprecated. Signed-off-by: Sean Cross --- tools/src/bin/read-tags.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tools/src/bin/read-tags.rs b/tools/src/bin/read-tags.rs index 5b4ec23b0..50e4bfa82 100644 --- a/tools/src/bin/read-tags.rs +++ b/tools/src/bin/read-tags.rs @@ -91,12 +91,12 @@ fn process_tags(b8: *mut u8) { } } -fn doit() -> io::Result<()> { +fn main() -> io::Result<()> { let args: Vec = env::args().collect(); if args.len() < 2 { println!( - "Usage: {} args.bin", - args.get(0).unwrap_or(&"read-tags".to_owned()) + "Usage: {} [xous_presign.img]", + args.get(0).map(|a| a.as_str()).unwrap_or("read-tags") ); process::exit(1); } @@ -113,6 +113,3 @@ fn doit() -> io::Result<()> { process_tags(byte_buffer); Ok(()) } -fn main() { - doit().unwrap(); -}