Usermode/init - Better logging
authorJohn Hodge <[email protected]>
Sat, 31 May 2014 05:59:33 +0000 (13:59 +0800)
committerJohn Hodge <[email protected]>
Sat, 31 May 2014 05:59:33 +0000 (13:59 +0800)
Usermode/Applications/init_src/main.c

index 31408e6..e9c3ef9 100644 (file)
@@ -452,6 +452,8 @@ int SpawnKTerm(tInitProgram *Program)
         int    in = _SysOpen(path, OPENFLAG_READ);
         int    out = _SysOpen(path, OPENFLAG_WRITE);
        
+       _SysDebug("Spawning virtual terminal '%s' with term '%s'",
+               path, Program->Command[0]);
        return SpawnCommand(in, out, out, Program->Command, env);
 }
 
@@ -475,6 +477,8 @@ int SpawnSTerm(tInitProgram *Program)
        _SysIOCtl(in, SERIAL_IOCTL_GETSETFORMAT, &Program->TypeInfo.STerm.FormatBits);
        #endif
 
+       _SysDebug("Spawning serial terminal '%s' with term '%s'",
+               Program->TypeInfo.STerm.Path, Program->Command[0]);
        return SpawnCommand(in, out, out, Program->Command, NULL);
 }
 

UCC git Repository :: git.ucc.asn.au