Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4548 → Rev 4549

/trunk/uspace/app/init/init.c
128,6 → 128,7
{
char *argv[4];
char vc[MAX_DEVICE_NAME];
int rc;
snprintf(vc, MAX_DEVICE_NAME, "/dev/%s", dev);
134,9 → 135,9
printf(NAME ": Spawning getvc on %s\n", vc);
dev_handle_t handle;
devmap_device_get_handle(dev, &handle, IPC_FLAG_BLOCKING);
rc = devmap_device_get_handle(dev, &handle, IPC_FLAG_BLOCKING);
if (handle >= 0) {
if (rc == EOK) {
argv[0] = "/app/getvc";
argv[1] = vc;
argv[2] = app;
144,8 → 145,9
if (!task_spawn("/app/getvc", argv))
printf(NAME ": Error spawning getvc on %s\n", vc);
} else
} else {
printf(NAME ": Error waiting on %s\n", vc);
}
}
 
int main(int argc, char *argv[])
160,7 → 162,7
spawn("/srv/devfs");
if (!mount_devfs()) {
return(NAME ": Exiting\n");
printf(NAME ": Exiting\n");
return -2;
}
/trunk/uspace/app/tester/stdio/stdio2.c
35,7 → 35,6
{
FILE *f;
char *file_name = "/test";
size_t n;
int c;
 
printf("Open file '%s' for writing\n", file_name);