Unify the debugging messages in the loader and kernel

This commit is contained in:
Pierre Pronchery 2019-04-27 04:18:21 +02:00
parent 508a3ed502
commit 976077afa0
2 changed files with 7 additions and 1 deletions

View File

@ -22,8 +22,10 @@ int main(int argc, char * argv[])
for(i = 0; i < argc; i++)
printf(" \"%s\"", argv[i]);
printf("\n");
#ifdef DEBUG
if(argv[i] != NULL)
puts("argv is not terminated properly!");
puts("uKernel: argv is not terminated properly");
#endif
if((t = time(NULL)) == -1)
printf("Could not get the current time (%d)\n", errno);
else

View File

@ -19,5 +19,9 @@ int main(int argc, char * argv[])
for(i = 0; i < argc; i++)
printf(" \"%s\"", argv[i]);
printf("\n");
#ifdef DEBUG
if(argv[i] != NULL)
puts("uLoader: argv is not terminated properly");
#endif
return 0;
}