Index: sys/boot/userboot/test/test.c =================================================================== --- sys/boot/userboot/test/test.c +++ sys/boot/userboot/test/test.c @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include @@ -292,6 +293,7 @@ if (to + size > image_size) size = image_size - to; memcpy(&image[to], from, size); + return (0); } int @@ -304,6 +306,7 @@ if (from + size > image_size) size = image_size - from; memcpy(to, &image[from], size); + return (0); } void @@ -333,7 +336,7 @@ void test_exec(void *arg, uint64_t pc) { - printf("Execute at 0x%llx\n", pc); + printf("Execute at 0x%" PRIu64 "\n", pc); test_exit(arg, 0); } @@ -411,7 +414,7 @@ usage() { - printf("usage: %s [-d ] [-h \n"); + printf("usage: [-d ] [-h \n"); exit(1); }