Declare __fake_use_va_args as a variadic function.
* New clang compiler requires variadic function to have at least one named parameter type. * Use ##__VA_ARGS__ to work with empty __VA_ARGS__. * Fix one ALOG_ASSERT parameter bug in lmkd/lmkd.c. Bug: 111614304 Test: make with WITH_TIDY=1 Change-Id: I90f35aa88527a6897954f69a35b256a157a725c5
This commit is contained in:
parent
fe78b931fa
commit
234a5a0350
2
lmkd.c
2
lmkd.c
|
|
@ -332,7 +332,7 @@ static int reread_file(struct reread_data *data, char *buf, size_t buf_size) {
|
||||||
data->fd = -1;
|
data->fd = -1;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
ALOG_ASSERT((size_t)size < buf_size - 1, data->filename " too large");
|
ALOG_ASSERT((size_t)size < buf_size - 1, "%s too large", data->filename);
|
||||||
buf[size] = 0;
|
buf[size] = 0;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue