Drivers: Fix -Wformat-security

Follow-up for Alan Shearer's change. Useful when the buffer contains the
character "%".

Change-Id: Ia6771a2d71306ca97e7c03f0e986ad3cfe100684
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4459
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
This commit is contained in:
Panagiotis Vasilopoulos 2021-09-13 08:18:15 +02:00 committed by Jérôme Duval
parent cc6736afae
commit c1740f4f53
4 changed files with 4 additions and 4 deletions

View File

@ -102,7 +102,7 @@ void SiS7018_trace(bool force, const char* func, const char *fmt, ...)
va_end(arg_list);
if (gLogFilePath == NULL) {
dprintf(buffer);
dprintf("%s", buffer);
return;
}

View File

@ -103,7 +103,7 @@ void usb_audio_trace(uint32 bits, const char* func, const char* fmt, ...)
va_end(arg_list);
if (gLogFilePath == NULL) {
dprintf(buffer);
dprintf("%s", buffer);
return;
}

View File

@ -111,7 +111,7 @@ void usb_asix_trace(bool force, const char* func, const char *fmt, ...)
va_end(arg_list);
if (gLogFilePath == NULL) {
dprintf(buffer);
dprintf("%s", buffer);
return;
}

View File

@ -118,7 +118,7 @@ void usb_davicom_trace(bool force, const char* func, const char *fmt, ...)
va_end(arg_list);
if (gLogFilePath == NULL) {
dprintf(buffer);
dprintf("%s", buffer);
return;
}