@@ -51,28 +51,23 @@ { enumerationMutationHandler = handler; } void -objc_error(const char *file, unsigned int line, const char *format, ...) +objc_error(const char *title, const char *format, ...) { #ifdef OF_AMIGAOS -# define BUF_LEN 256 - char title[BUF_LEN]; +# define BUF_LEN 512 char message[BUF_LEN]; int status; va_list args; struct Library *IntuitionBase; # ifdef OF_AMIGAOS4 struct IntuitionIFace *IIntuition; # endif struct EasyStruct easy; - status = snprintf(title, BUF_LEN, "ObjFWRT @ %s:%u", file, line); - if (status <= 0 || status >= BUF_LEN) - title[0] = '\0'; - va_start(args, format); status = vsnprintf(message, BUF_LEN, format, args); if (status <= 0 || status >= BUF_LEN) message[0] = '\0'; va_end(args); @@ -109,11 +104,11 @@ #else va_list args; va_start(args, format); - fprintf(stderr, "[ObjFWRT @ %s:%u] ", file, line); + fprintf(stderr, "[%s] ", title); vfprintf(stderr, format, args); fprintf(stderr, "\n"); fflush(stderr); va_end(args);