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
Makefile - Trace mtest build
[tpg/acess2.git]
/
Usermode
/
Applications
/
init_src
/
main.c
diff --git
a/Usermode/Applications/init_src/main.c
b/Usermode/Applications/init_src/main.c
index
31408e6
..
73411b9
100644
(file)
--- a/
Usermode/Applications/init_src/main.c
+++ b/
Usermode/Applications/init_src/main.c
@@
-7,6
+7,7
@@
#include <string.h>
#include "common.h"
#include <ctype.h>
#include <string.h>
#include "common.h"
#include <ctype.h>
+#include <inttypes.h>
// === CONSTANTS ===
#define DEFAULT_SHELL "/Acess/SBin/login"
// === CONSTANTS ===
#define DEFAULT_SHELL "/Acess/SBin/login"
@@
-452,6
+453,8
@@
int SpawnKTerm(tInitProgram *Program)
int in = _SysOpen(path, OPENFLAG_READ);
int out = _SysOpen(path, OPENFLAG_WRITE);
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);
}
return SpawnCommand(in, out, out, Program->Command, env);
}
@@
-475,6
+478,8
@@
int SpawnSTerm(tInitProgram *Program)
_SysIOCtl(in, SERIAL_IOCTL_GETSETFORMAT, &Program->TypeInfo.STerm.FormatBits);
#endif
_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);
}
return SpawnCommand(in, out, out, Program->Command, NULL);
}
@@
-495,7
+500,7
@@
int SpawnDaemon(tInitProgram *Program)
// Log spawn header
{
char buffer[101];
// Log spawn header
{
char buffer[101];
- size_t len = snprintf(buffer, 100, "[%
lli
] init spawning ", _SysTimestamp());
+ size_t len = snprintf(buffer, 100, "[%
"PRIi64"
] init spawning ", _SysTimestamp());
_SysWrite(out, buffer, len);
for( int i = 0; Program->Command[i]; i ++ )
{
_SysWrite(out, buffer, len);
for( int i = 0; Program->Command[i]; i ++ )
{
UCC
git Repository :: git.ucc.asn.au