Lines Matching refs:printf
187 printf( "stat call on our executable failed - \"%s\" \n", g_cmd_namep );
188 printf( " failed with error %d - \"%s\" \n", err, strerror( err) );
192 printf( "executable file - \"%s\" \n", g_cmd_namep );
193 printf( "does not have correct owner (must be root) or setuid bit is not set \n" );
205 printf( "invalid target parameter \n" );
212 printf( "invalid target path \n" );
214 printf( "stat call failed with error %d - \"%s\" \n", errno, strerror( errno) );
223 printf( "invalid failures parameter \n" );
241 printf( "invalid run tests parameter \n" );
247 printf( "invalid run tests parameter \n" );
267 printf( "invalid argument \"%s\" \n", argv[i] );
280 printf("[TEST] xnu_quick_test \n"); /* Declare the beginning of test suite */
308 printf( "Will allow %ld failures before testing is aborted \n", g_max_failures );
311 printf( "\nBegin testing - %s \n", ctime_r( &my_start_time, &my_buffer[0] ) );
312 printf( "Current architecture is %s\n", current_arch() );
335 printf("[BEGIN] %s \n", my_testp->test_infop);
338 printf( "test #%d - %s \n", (i + 1), my_testp->test_infop );
342 printf("\t--> FAILED \n");
357 printf( "\n Reached the maximum number of failures - Aborting xnu_quick_test. \n" );
360 printf("[FAIL] %s \n", my_testp->test_infop);
366 printf("[FAIL] %s \n", my_testp->test_infop);
382 printf("[PASS] %s \n", my_testp->test_infop);
388 printf( "\nEnd testing - %s \n", ctime_r( &my_end_time, &my_buffer[0] ) );
440 printf( "-run argument has too many test parameters (max of %lu characters) \n", sizeof( my_buffer ) );
459 printf( "-run argument has invalid range parmeters \n" );
471 printf( "-run argument has invalid range parmeters \n" );
482 printf( "-run argument has invalid test number parameter \n" );
501 printf( "target path too long - \"%s\" \n", the_targetp );
512 printf( "target path plus our test directory name is too long: \n" );
513 printf( "target path - \"%s\" \n", the_targetp );
514 printf( "test directory name - \"%s\" \n", &my_name[0] );
533 printf( "test directory creation failed - \"%s\" \n", &g_target_path[0] );
534 printf( "mkdir call failed with error %d - \"%s\" \n", errno, strerror( err) );
538 printf( "created test directory at \"%s\" \n", &g_target_path[0] );
566 printf( "\nUSAGE: %s -target TARGET_PATH \n\n", (my_ptr != NULL) ? my_ptr : g_cmd_namep );
567 printf( "\t -f[ailures] MAX_FAILS_ALLOWED # number of test cases that may fail before we give up. defaults to 0 \n" );
568 printf( "\t -l[ist] # list all the tests this tool performs \n" );
569 printf( "\t -r[un] 1, 3, 10 - 19 # run specific tests. enter individual test numbers and/or range of numbers. use -list to list tests. \n" );
570 printf( "\t -s[kip] # skip setuid tests \n" );
571 printf( "\t -t[arget] TARGET_PATH # path to directory where tool will create test files. defaults to \"/tmp/\" \n" );
573 printf( "\t -x[ilog] # use XILog\n");
575 printf( "\nexamples: \n" );
576 printf( "--- Place all test files and directories at the root of volume \"test_vol\" --- \n" );
577 printf( "%s -t /Volumes/test_vol/ \n", (my_ptr != NULL) ? my_ptr : g_cmd_namep );
578 printf( " \n" );
579 printf( "--- Run the tool for tests 10 thru 15, test 18 and test 20 --- \n" );
580 printf( "%s -r 10-15, 18, 20 \n", (my_ptr != NULL) ? my_ptr : g_cmd_namep );
581 printf( " \n" );
602 printf("In single-user mode.\n");
624 printf("After single-user hack, groups are: ");
626 printf("%d, ", gids[i]);
630 printf("Setgroups failed.\n");
633 printf("Couldn't get sufficient number of groups.\n");
636 printf("Not in single user mode.\n");
659 #undef printf /* this makes the "-l" output easier to read */
665 printf( "\nList of all tests this tool performs... \n" );
668 printf( " %d \t %s \n", (i + 1), g_tests[ i ].test_infop );