Make dbgf display something for an empty array

Also significantly expands on Dirk's Release Notes entries.
This commit is contained in:
Andrew Johnson
2020-10-30 13:37:50 -05:00
parent a7bf59079f
commit 297f04bddc
2 changed files with 68 additions and 26 deletions

View File

@@ -954,13 +954,13 @@ static void printBuffer(
}
/* Now print values */
if (no_elements == 0)
return;
if (no_elements == 1)
sprintf(pmsg, "DBF_%s: ", dbr[dbr_type]);
else
else {
sprintf(pmsg, "DBF_%s[%ld]: ", dbr[dbr_type], no_elements);
if (no_elements == 0)
strcat(pmsg, "(empty)");
}
dbpr_msgOut(pMsgBuff, tab_size);
if (status != 0) {