+ yaffs_error=yaffs_get_error();
+ if (MESSAGE_LEVEL_ERROR<=DEBUG_LEVEL) printf("%d\n",yaffs_error); /*cannot yet add int types to buffer. this is a quick fix*/
+ add_to_buffer(message_buffer, error_to_str(yaffs_error),MESSAGE_LEVEL_ERROR,NPRINT);
+ append_to_buffer(message_buffer, "\n\n",MESSAGE_LEVEL_ERROR,PRINT);
+
+ scanf("%c",dummy); /*this line causes a segmentation fault. Need a better way of waiting for a key press*/