mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Simplify Error() - don't allocate temporary copy of error string
Doesn't seem to be any reason to just not pass the error string as another argument directly to LogVWrite() Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net> Reviewed-by: Julien Cristau <jcristau@debian.org>
This commit is contained in:
@@ -526,7 +526,7 @@ extern _X_EXPORT void FatalError(const char *f, ...) _X_ATTRIBUTE_PRINTF(1,2) _X
|
||||
|
||||
extern _X_EXPORT void VErrorF(const char *f, va_list args);
|
||||
extern _X_EXPORT void ErrorF(const char *f, ...) _X_ATTRIBUTE_PRINTF(1,2);
|
||||
extern _X_EXPORT void Error(char *str);
|
||||
extern _X_EXPORT void Error(const char *str);
|
||||
extern _X_EXPORT void LogPrintMarkers(void);
|
||||
|
||||
extern _X_EXPORT void xorg_backtrace(void);
|
||||
|
||||
Reference in New Issue
Block a user