loaddrv: Updated error message on invalid args passed (#364)

Added a usage line and changed the wording slightly to be more clear in the expected arguments.

Co-authored-by: Aditya Yellapuntula Venkata <aditya.yellapuntulavenkata@doosan.com>
Reviewed-on: KolibriOS/kolibrios#364
Reviewed-by: Burer <burer@noreply.localhost>
Reviewed-by: Max Logaev <maxlogaev@proton.me>
Co-authored-by: Aditya Yellapuntula Venkata <adityayv802@gmail.com>
Co-committed-by: Aditya Yellapuntula Venkata <adityayv802@gmail.com>
This commit is contained in:
YVishereandAditya Yellapuntula Venkata authored and Max Logaev committed 2026-03-14 16:49:33 +00:00
1 parent 3238f9f485
commit 4c359e42ce
1 file changed
+5 -4
+5 -4
View File
@@ -27,13 +27,14 @@ start:
cmp eax, 0 cmp eax, 0
jne ok jne ok
nok: nok:
print 'LoadDrv: Error loading driver' print 'E: LoadDrv: Error loading driver'
print 'Driver must be in /sys/drivers/ folder.' print 'I: Usage: loaddrv <driver_name>'
print 'Its name must be w/o extension and it is case-sensitive' print 'I: Driver must be stored as /sys/drivers/<driver_name>.sys'
print 'I: <driver_name> must be w/o extension and it is case-sensitive'
mov eax, -1 mov eax, -1
int 0x40 int 0x40
ok: ok:
print 'LoadDrv: Driver loaded well' print 'I: LoadDrv: Driver loaded well'
mov eax, -1 mov eax, -1
int 0x40 int 0x40