X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Ftest-framework%2Ftimothy_tests%2Fstress_tester%2Ferror_handler.c;h=ff22260c296fa591f188a9d0fac44503452fe08e;hb=cf14d8b71ffe8d524439e7310a165389bc015dfa;hp=9d9ac975d9af5c519cc0c7c4b0202af224a62726;hpb=1f3d64d1d804fef6715126dead54bf30b176c67e;p=yaffs2.git diff --git a/direct/test-framework/timothy_tests/stress_tester/error_handler.c b/direct/test-framework/timothy_tests/stress_tester/error_handler.c index 9d9ac97..ff22260 100644 --- a/direct/test-framework/timothy_tests/stress_tester/error_handler.c +++ b/direct/test-framework/timothy_tests/stress_tester/error_handler.c @@ -14,7 +14,7 @@ * error_handler.c contains code for checking yaffs function calls for errors. */ #include "error_handler.h" - +#include "shared.h" typedef struct error_codes_template { int code; @@ -42,9 +42,9 @@ const error_entry error_list[] = { { 0, NULL } }; -const char * error_to_str(int err) +char * error_to_str(int err) { - error_entry *e = error_list; + error_entry const *e = error_list; if (err < 0) err = -err; while(e->code && e->text){ @@ -56,10 +56,8 @@ const char * error_to_str(int err) } void yaffs_check_for_errors(char output, buffer *message_buffer,char error_message[],char success_message[]){ - char dummy[10]; - unsigned int x=0; int yaffs_error=-1; - char error_found=0; + if (output==-1) { add_to_buffer(message_buffer, "\nerror##########",MESSAGE_LEVEL_ERROR,PRINT);