Skip to content

Commit 2422e56

Browse files
committed
Improve "Ring buffer overflow" message
1 parent c39f39c commit 2422e56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/database/src/ioc/db/dbScan.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,9 @@ int scanOnceCallback(struct dbCommon *precord, once_complete cb, void *usr)
680680
pushOK = epicsRingBytesPut(onceQ, (void*)&ent, sizeof(ent));
681681

682682
if (!pushOK) {
683-
if (newOverflow) errlogPrintf("scanOnce: Ring buffer overflow\n");
683+
if (newOverflow)
684+
errlogPrintf("%s : " ERL_WARNING " scanOnce: Ring buffer overflow\n",
685+
precord->name);
684686
newOverflow = FALSE;
685687
epicsAtomicIncrIntT(&onceQOverruns);
686688
} else {

0 commit comments

Comments
 (0)