From 066d37db249d6ce80b1e86fc2cb3d134172e7b1c Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Wed, 8 Jun 2022 21:33:22 +0000 Subject: [PATCH] kata-shell: fix bundles display of the empty array Change-Id: Idfd75a3c3e14c543c79b78a7f3133b0de4edf874 GitOrigin-RevId: 3fe641ccf0e1ee577689776f531eb853e9972d53 --- apps/system/components/DebugConsole/kata-shell/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/system/components/DebugConsole/kata-shell/src/lib.rs b/apps/system/components/DebugConsole/kata-shell/src/lib.rs index 019c962..307ae0d 100644 --- a/apps/system/components/DebugConsole/kata-shell/src/lib.rs +++ b/apps/system/components/DebugConsole/kata-shell/src/lib.rs @@ -238,7 +238,9 @@ fn bundles_command( ) -> Result<(), CommandError> { match kata_proc_ctrl_get_running_bundles() { Ok(bundle_ids) => { - writeln!(output, "{}", bundle_ids.join("\n"))?; + for b in bundle_ids { + writeln!(output, "{}", b)?; + } } Err(status) => { writeln!(output, "get_running_bundles failed: {:?}", status)?;