2 #include <mach/mach_error.h>
3 #include <servers/bootstrap.h>
9 #include "hello_logger.h"
11 int main(int argc
, char *argv
[])
17 fprintf(stderr
, "I need a string to send!\n");
21 kr
= bootstrap_look_up(bootstrap_port
, HELLO_LOGGER_BOOTSTRAP_NAME
, &mp
);
22 if (kr
!= KERN_SUCCESS
) {
23 fprintf(stderr
, "bootstrap_look_up(): %s\n", bootstrap_strerror(kr
));
27 kr
= example(mp
, argv
[1]);
28 if (kr
!= KERN_SUCCESS
) {
29 fprintf(stderr
, "test_hello_logger(): %s\n", mach_error_string(kr
));