X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=projects%2Fmicrob2010%2Ftests%2Fhostsim%2Fcmdline.c;h=edf7601e7f7283fa074ab42fc363549011e4e9db;hp=303803604dc9856aadf1fbbd92e5bc8db66bc000;hb=daf4ef7d2b5222632a5313841f84cf09810827c3;hpb=87ccd3af8abb0da3e0fa98dc8e9216fc7b676f97 diff --git a/projects/microb2010/tests/hostsim/cmdline.c b/projects/microb2010/tests/hostsim/cmdline.c index 3038036..edf7601 100644 --- a/projects/microb2010/tests/hostsim/cmdline.c +++ b/projects/microb2010/tests/hostsim/cmdline.c @@ -31,7 +31,7 @@ #include #include #include -#include +#include #include #include @@ -115,7 +115,7 @@ void mylog(struct error * e, ...) if (e->severity > ERROR_SEVERITY_ERROR) { if (gen.log_level < e->severity) return; - + for (i=0; ierr_num) break; @@ -126,12 +126,12 @@ void mylog(struct error * e, ...) va_start(ap, e); tv = time_get_time(); printf_P(PSTR("%d.%.3d: "), (int)tv.s, (int)(tv.us/1000UL)); - + printf_P(PSTR("(%d,%d,%d) "), position_get_x_s16(&mainboard.pos), position_get_y_s16(&mainboard.pos), position_get_a_deg_s16(&mainboard.pos)); - + vfprintf_P(stdout, e->text, ap); printf_P(PSTR("\r\n")); va_end(ap);