diff options
| author | Robert Morris | 2020-08-07 15:06:43 -0400 |
|---|---|---|
| committer | Robert Morris | 2020-08-07 15:06:43 -0400 |
| commit | 354adfdafc3993771f58236771e213016ff9aed8 (patch) | |
| tree | 897b1539a46d30b14a85965a9e90ecdb0286bcfe /kernel/console.c | |
| parent | f01b1a8b71b8e0e8d7564a475a31c4e951463874 (diff) | |
streamline copyin/copyout code in usertests
fix bugs in read/write return values when there's an error
Diffstat (limited to 'kernel/console.c')
| -rw-r--r-- | kernel/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/console.c b/kernel/console.c index 9a18cd9..2b1ed3c 100644 --- a/kernel/console.c +++ b/kernel/console.c @@ -76,7 +76,7 @@ consolewrite(int user_src, uint64 src, int n) } release(&cons.lock); - return n; + return i; } // |
