mirror of
https://gitlab.os-k.eu/os-k-team/os-k.git
synced 2023-08-25 14:03:10 +02:00
dmesg
This commit is contained in:
parent
974211dc43
commit
e87e3def47
@ -108,12 +108,16 @@ error_t CmdDmesg(int argc, char **argv, char *cmdline)
|
|||||||
size_t N = 0;
|
size_t N = 0;
|
||||||
|
|
||||||
if (argc == 1) N = 999;
|
if (argc == 1) N = 999;
|
||||||
else if (argc == 2) N = atoi(argv[1]);
|
else if (argc == 2) N = 1 + atoi(argv[1]);
|
||||||
else {
|
else {
|
||||||
KernLog("dmesg: no more than one argument\n");
|
KernLog("dmesg: no more than one argument\n");
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DebugLog("dmesg requested from kernel shell (N=%d)\n", N);
|
||||||
|
|
||||||
|
if (N == 0) return EOK;
|
||||||
|
|
||||||
BLockBuf(BStdDbg);
|
BLockBuf(BStdDbg);
|
||||||
|
|
||||||
ptr = (char *)lmax((ulong)BStdDbg->buf,
|
ptr = (char *)lmax((ulong)BStdDbg->buf,
|
||||||
|
Loading…
Reference in New Issue
Block a user