git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kernel - (experimental) Allowing THREAD_EVENT_TIMER to wake a semaphore
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
drv
/
vterm.c
diff --git
a/KernelLand/Kernel/drv/vterm.c
b/KernelLand/Kernel/drv/vterm.c
index
fc6dea2
..
3ff1a53
100644
(file)
--- a/
KernelLand/Kernel/drv/vterm.c
+++ b/
KernelLand/Kernel/drv/vterm.c
@@
-114,11
+114,11
@@
int VT_Install(char **Arguments)
if( strcmp(opt, "Video") == 0 ) {
if( !gsVT_OutputDevice )
if( strcmp(opt, "Video") == 0 ) {
if( !gsVT_OutputDevice )
- gsVT_OutputDevice =
strdup(val)
;
+ gsVT_OutputDevice =
val
;
}
else if( strcmp(opt, "Input") == 0 ) {
if( !gsVT_InputDevice )
}
else if( strcmp(opt, "Input") == 0 ) {
if( !gsVT_InputDevice )
- gsVT_InputDevice =
strdup(val)
;
+ gsVT_InputDevice =
val
;
}
else if( strcmp(opt, "Width") == 0 ) {
giVT_RealWidth = atoi( val );
}
else if( strcmp(opt, "Width") == 0 ) {
giVT_RealWidth = atoi( val );
@@
-129,6
+129,9
@@
int VT_Install(char **Arguments)
else if( strcmp(opt, "Scrollback") == 0 ) {
giVT_Scrollback = atoi( val );
}
else if( strcmp(opt, "Scrollback") == 0 ) {
giVT_Scrollback = atoi( val );
}
+ else {
+ Log_Notice("VTerm", "Unknown option '%s'", opt);
+ }
}
}
}
}
@@
-448,8
+451,8
@@
size_t VT_Write(tVFS_Node *Node, off_t Offset, size_t Length, const void *Buffer
// - Sanity Checking
size = term->Width*term->Height*4;
if( Offset > size ) {
// - Sanity Checking
size = term->Width*term->Height*4;
if( Offset > size ) {
- Log_Notice("VTerm", "VT_Write: Offset (0x%llx) > FBSize (0x%x)",
- Offset, size);
+ Log_Notice("VTerm", "VT_Write:
%i
Offset (0x%llx) > FBSize (0x%x)",
+
(int)Node->Inode,
Offset, size);
return 0;
}
if( Offset + Length > size ) {
return 0;
}
if( Offset + Length > size ) {
UCC
git Repository :: git.ucc.asn.au