mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcGuardLib: Use EFIAPI for functions involving VA.
This commit is contained in:
parent
70b9c345dd
commit
dd8df2b112
@ -237,7 +237,7 @@ struct CFloatCastOverflowData {
|
||||
};
|
||||
|
||||
/* Local utility functions */
|
||||
static void Report(bool isFatal, const char *pFormat, ...) __printflike(2, 3);
|
||||
static void EFIAPI Report(bool isFatal, const char *pFormat, ...) __printflike(2, 3);
|
||||
static bool isAlreadyReported(struct CSourceLocation *pLocation);
|
||||
static size_t zDeserializeTypeWidth(struct CTypeDescriptor *pType);
|
||||
static void DeserializeLocation(char *pBuffer, size_t zBUfferLength, struct CSourceLocation *pLocation);
|
||||
@ -1118,6 +1118,7 @@ __ubsan_get_current_report_data(const char **ppOutIssueKind, const char **ppOutM
|
||||
/* Local utility functions */
|
||||
|
||||
static void
|
||||
EFIAPI
|
||||
Report(bool isFatal, const char *pFormat, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
@ -165,11 +165,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
// C-style printing support.
|
||||
#define TINYPRINTF_DEFINE_TFP_SPRINTF 1
|
||||
typedef void (*putcf) (void *, char);
|
||||
void tfp_format(void *putp, putcf putf, const char *fmt, va_list va);
|
||||
void EFIAPI tfp_format(void *putp, putcf putf, const char *fmt, va_list va);
|
||||
int tfp_vsnprintf(char *str, size_t size, const char *fmt, va_list ap);
|
||||
int tfp_snprintf(char *str, size_t size, const char *fmt, ...) __printflike(3, 4);
|
||||
int tfp_vsprintf(char *str, const char *fmt, va_list ap);
|
||||
int tfp_sprintf(char *str, const char *fmt, ...) __printflike(2, 3);
|
||||
int EFIAPI tfp_snprintf(char *str, size_t size, const char *fmt, ...) __printflike(3, 4);
|
||||
int EFIAPI tfp_vsprintf(char *str, const char *fmt, va_list ap);
|
||||
int EFIAPI tfp_sprintf(char *str, const char *fmt, ...) __printflike(2, 3);
|
||||
|
||||
// Redirect log printing to standard output.
|
||||
#define snprintf tfp_snprintf
|
||||
|
||||
@ -258,7 +258,7 @@ static void putchw(void *putp, putcf putf, struct param *p)
|
||||
}
|
||||
}
|
||||
|
||||
void tfp_format(void *putp, putcf putf, const char *fmt, va_list va)
|
||||
void EFIAPI tfp_format(void *putp, putcf putf, const char *fmt, va_list va)
|
||||
{
|
||||
struct param p;
|
||||
#ifdef PRINTF_LONG_SUPPORT
|
||||
@ -438,7 +438,7 @@ void init_printf(void *putp, putcf putf)
|
||||
stdout_putp = putp;
|
||||
}
|
||||
|
||||
void tfp_printf(char *fmt, ...)
|
||||
void EFIAPI tfp_printf(char *fmt, ...)
|
||||
{
|
||||
va_list va;
|
||||
va_start(va, fmt);
|
||||
@ -483,7 +483,7 @@ int tfp_vsnprintf(char *str, size_t size, const char *format, va_list ap)
|
||||
return data.num_chars;
|
||||
}
|
||||
|
||||
int tfp_snprintf(char *str, size_t size, const char *format, ...)
|
||||
int EFIAPI tfp_snprintf(char *str, size_t size, const char *format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
int retval;
|
||||
@ -506,7 +506,7 @@ static void _vsprintf_putcf(void *p, char c)
|
||||
data->dest[data->num_chars++] = c;
|
||||
}
|
||||
|
||||
int tfp_vsprintf(char *str, const char *format, va_list ap)
|
||||
int EFIAPI tfp_vsprintf(char *str, const char *format, va_list ap)
|
||||
{
|
||||
struct _vsprintf_putcf_data data;
|
||||
data.dest = str;
|
||||
@ -516,7 +516,7 @@ int tfp_vsprintf(char *str, const char *format, va_list ap)
|
||||
return data.num_chars;
|
||||
}
|
||||
|
||||
int tfp_sprintf(char *str, const char *format, ...)
|
||||
int EFIAPI tfp_sprintf(char *str, const char *format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
int retval;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user