Skip to content

Commit 17bfcd6

Browse files
wedsonafojeda
authored andcommitted
rust: error: fix the description for ECHILD
A mistake was made and the description of `ECHILD` is wrong (it reuses the description of `ENOEXEC`). This fixes it to reflect what's in `errno-base.h`. Signed-off-by: Wedson Almeida Filho <[email protected]> Reviewed-by: Martin Rodriguez Reboredo <[email protected]> Reviewed-by: Trevor Gross <[email protected]> Reviewed-by: Finn Behrens <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Fixes: 266def2 ("rust: error: add codes from `errno-base.h`") Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] [ Use the plural, as noticed by Benno. ] Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 8a749fd commit 17bfcd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub mod code {
3737
declare_err!(E2BIG, "Argument list too long.");
3838
declare_err!(ENOEXEC, "Exec format error.");
3939
declare_err!(EBADF, "Bad file number.");
40-
declare_err!(ECHILD, "Exec format error.");
40+
declare_err!(ECHILD, "No child processes.");
4141
declare_err!(EAGAIN, "Try again.");
4242
declare_err!(ENOMEM, "Out of memory.");
4343
declare_err!(EACCES, "Permission denied.");

0 commit comments

Comments
 (0)