#include <string.h>
#include "common.h"
#include <ctype.h>
+#include <inttypes.h>
// === CONSTANTS ===
#define DEFAULT_SHELL "/Acess/SBin/login"
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);
}
_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);
}
// 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 ++ )
{