Removed printsf, an unused secure testing printf variant. This variant does not apply now that each test has its own secret.
Fixed unused variable in libtest161 in kernel compiles.
This commit is contained in:
@@ -16,9 +16,9 @@ tprintf(const char *fmt, ...)
|
||||
int chars;
|
||||
va_list ap;
|
||||
|
||||
if (strcmp(SECRET, "") != 0) {
|
||||
return 0;
|
||||
}
|
||||
#ifdef SECRET_TESTING
|
||||
return 0;
|
||||
#endif
|
||||
|
||||
va_start(ap, fmt);
|
||||
chars = vprintf(fmt, ap);
|
||||
@@ -34,9 +34,9 @@ nprintf(const char *fmt, ...)
|
||||
int chars;
|
||||
va_list ap;
|
||||
|
||||
if (strcmp(SECRET, "") == 0) {
|
||||
return 0;
|
||||
}
|
||||
#ifndef SECRET_TESTING
|
||||
return 0;
|
||||
#endif
|
||||
|
||||
va_start(ap, fmt);
|
||||
chars = vprintf(fmt, ap);
|
||||
@@ -44,20 +44,3 @@ nprintf(const char *fmt, ...)
|
||||
|
||||
return chars;
|
||||
}
|
||||
|
||||
/* printf variant that prepends the kernel secret */
|
||||
int
|
||||
printsf(const char *fmt, ...)
|
||||
{
|
||||
int chars;
|
||||
va_list ap;
|
||||
|
||||
if (strcmp(SECRET, "") != 0) {
|
||||
printf("%s: ", SECRET);
|
||||
}
|
||||
va_start(ap, fmt);
|
||||
chars = vprintf(fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
return chars;
|
||||
}
|
||||
|
Reference in New Issue
Block a user