X-Git-Url: https://yaffs.net/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftimothy_tests%2Ferror_handler.c;h=b41f7327df12c956060238ac26a069286d9ab7dd;hp=f060cafa3002b01dd81d3a2bfb338a94ce222f28;hb=b708f76c6a03f86058236dbd529e8c3623571325;hpb=941b43d04d6684b006fbe648f150192116f11ab1 diff --git a/direct/timothy_tests/error_handler.c b/direct/timothy_tests/error_handler.c index f060caf..b41f732 100644 --- a/direct/timothy_tests/error_handler.c +++ b/direct/timothy_tests/error_handler.c @@ -7,7 +7,7 @@ void yaffs_check_for_errors(char output, buffer *message_buffer,char error_messa add_to_buffer(message_buffer, "error##########",MESSAGE_LEVEL_ERROR); add_to_buffer(message_buffer, error_message,MESSAGE_LEVEL_ERROR); add_to_buffer(message_buffer, "error_code",MESSAGE_LEVEL_ERROR); - printf("%d\n",yaffs_get_error()); + if (MESSAGE_LEVEL_ERROR<=DEBUG_LEVEL) printf("%d\n",yaffs_get_error()); /*cannot yet add int types to buffer. this is a quick fix*/ //print_buffer(message_buffer,PRINT_ALL);