[CUDA] Improve printf format string error
@@ -70,7 +70,11 @@ __cl_printf(__attribute__((address_space(4))) char* restrict format, ...)
vprintf("%s", arg_data);
break;
}
- default: goto error;
+ default:
+ {
+ vprintf("<format error>", &ch);
+ break;
+ }
}
ch = *++format;
}
@@ -83,9 +87,4 @@ __cl_printf(__attribute__((address_space(4))) char* restrict format, ...)
va_end(ap);
return 0;
-
- error:
- va_end(ap);
- vprintf("(printf format string error)", &ch);
- return -1;
}
