Improve "Ring buffer overflow" message

This commit is contained in:
Michael Davidsaver
2025-07-07 16:10:26 -07:00
parent c39f39cb93
commit 2422e56d20

View File

@@ -680,7 +680,9 @@ int scanOnceCallback(struct dbCommon *precord, once_complete cb, void *usr)
pushOK = epicsRingBytesPut(onceQ, (void*)&ent, sizeof(ent));
if (!pushOK) {
if (newOverflow) errlogPrintf("scanOnce: Ring buffer overflow\n");
if (newOverflow)
errlogPrintf("%s : " ERL_WARNING " scanOnce: Ring buffer overflow\n",
precord->name);
newOverflow = FALSE;
epicsAtomicIncrIntT(&onceQOverruns);
} else {