mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-18 21:23:02 +00:00
Make cpplint happy
This commit is contained in:
parent
4479c7867b
commit
d30b87c2c1
@ -229,7 +229,7 @@ void fatalerr(const char *format, ...)
|
||||
char msg[1024];
|
||||
va_list ap;
|
||||
va_start(ap, format);
|
||||
vsnprintf(msg, 1024, format, ap);
|
||||
vsnprintf(msg, sizeof(msg), format, ap);
|
||||
va_end(ap);
|
||||
fprintf(stderr, "%s", msg);
|
||||
exit(-9);
|
||||
@ -4084,7 +4084,7 @@ void trace(int level, const char *format, ...)
|
||||
va_list ap;
|
||||
char buffer[256];
|
||||
va_start(ap, format);
|
||||
vsnprintf(buffer, 256, format, ap);
|
||||
vsnprintf(buffer, sizeof(buffer), format, ap);
|
||||
va_end(ap);
|
||||
std::string str(buffer);
|
||||
VLOG(level) << "RTKLIB TRACE[" << level << "]:" << str;
|
||||
|
@ -504,7 +504,7 @@ void errmsg(rtk_t *rtk, const char *format, ...)
|
||||
time2str(rtk->sol.time, tstr, 2);
|
||||
n = std::snprintf(buff, sizeof(buff), "%s: ", tstr + 11);
|
||||
va_start(ap, format);
|
||||
n += vsnprintf(buff + n, 256, format, ap);
|
||||
n += vsnprintf(buff + n, sizeof(buff) - n, format, ap);
|
||||
va_end(ap);
|
||||
n = n < MAXERRMSG - rtk->neb ? n : MAXERRMSG - rtk->neb;
|
||||
memcpy(rtk->errbuf + rtk->neb, buff, n);
|
||||
|
Loading…
Reference in New Issue
Block a user