public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH v1 1/1] initramfs: correct parameter reference in hook_error function
@ 2024-09-03 13:15 'Rakesh Kumar' via isar-users
  2024-09-03 13:23 ` 'Jan Kiszka' via isar-users
  2024-09-09 14:44 ` Uladzimir Bely
  0 siblings, 2 replies; 4+ messages in thread
From: 'Rakesh Kumar' via isar-users @ 2024-09-03 13:15 UTC (permalink / raw)
  To: isar-users; +Cc: jan.kiszka, cedric.hombourger, Rakesh Kumar

Fixed an issue in the hook_error function where the second
parameter ($2) was incorrectly referenced in the error message output.
The correct first parameter ($1) is now used to ensure that the
specified argument to hook_error is correctly logged into the logfile.

Signed-off-by: Rakesh Kumar <kumar.rakesh@siemens.com>
---
 .../initramfs-tee-supplicant-hook/files/tee-supplicant.hook     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-initramfs/initramfs-tee-supplicant-hook/files/tee-supplicant.hook b/meta/recipes-initramfs/initramfs-tee-supplicant-hook/files/tee-supplicant.hook
index 3e6adbed..3e2f4016 100644
--- a/meta/recipes-initramfs/initramfs-tee-supplicant-hook/files/tee-supplicant.hook
+++ b/meta/recipes-initramfs/initramfs-tee-supplicant-hook/files/tee-supplicant.hook
@@ -24,7 +24,7 @@ esac
 . /usr/share/initramfs-tools/hook-functions
 
 hook_error() {
-    echo "(ERROR): $2" >&2
+    echo "(ERROR): $1" >&2
     exit 1
 }
 
-- 
2.39.2

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/isar-users/20240903131559.802498-1-kumar.rakesh%40siemens.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-09-09 14:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-03 13:15 [PATCH v1 1/1] initramfs: correct parameter reference in hook_error function 'Rakesh Kumar' via isar-users
2024-09-03 13:23 ` 'Jan Kiszka' via isar-users
2024-09-04  5:26   ` 'Kumar, Rakesh' via isar-users
2024-09-09 14:44 ` Uladzimir Bely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox