Skip to content
Snippets Groups Projects
Commit 89a6d173 authored by Marty Kraimer's avatar Marty Kraimer
Browse files

Added argument verbose to dbPvdDump

parent d9666a8f
No related branches found
Tags R3.12.2
No related merge requests found
...@@ -4356,10 +4356,11 @@ DBBASE *pdbbase; ...@@ -4356,10 +4356,11 @@ DBBASE *pdbbase;
} }
#ifdef __STDC__ #ifdef __STDC__
void dbPvdDump(DBBASE *pdbbase) void dbPvdDump(DBBASE *pdbbase,int verbose)
#else #else
void dbPvdDump(pdbbase) void dbPvdDump(pdbbase,verbose)
DBBASE *pdbbase; DBBASE *pdbbase;
int verbose;
#endif /*__STDC__*/ #endif /*__STDC__*/
{ {
unsigned short hashInd; unsigned short hashInd;
...@@ -4369,14 +4370,16 @@ DBBASE *pdbbase; ...@@ -4369,14 +4370,16 @@ DBBASE *pdbbase;
int number; int number;
if (ppvd == NULL) return; if (ppvd == NULL) return;
printf("Process Variable Directory\n"); printf("Process Variable Directory ");
printf("dbPvdHashTableSize %d dbPvdHashTableShift %d\n",
dbPvdHashTableSize,dbPvdHashTableShift);
for (hashInd=0; hashInd<(unsigned short)dbPvdHashTableSize; hashInd++) { for (hashInd=0; hashInd<(unsigned short)dbPvdHashTableSize; hashInd++) {
if(ppvd[hashInd] == NULL) continue; if(ppvd[hashInd] == NULL) continue;
ppvdlist=ppvd[hashInd]; ppvdlist=ppvd[hashInd];
ppvdNode = (PVDENTRY *) ellFirst(ppvdlist); ppvdNode = (PVDENTRY *) ellFirst(ppvdlist);
printf(" %3.3hd=%3.3d\n",hashInd,ellCount(ppvdlist)); printf("\n%3.3hd=%3.3d ",hashInd,ellCount(ppvdlist));
number=0; number=0;
while(ppvdNode) { while(ppvdNode && verbose) {
printf(" %s",(char *)ppvdNode->precnode->precord); printf(" %s",(char *)ppvdNode->precnode->precord);
if(number++ ==2) {number=0;printf("\n ");} if(number++ ==2) {number=0;printf("\n ");}
ppvdNode = (PVDENTRY *) ellNext((ELLNODE*)ppvdNode); ppvdNode = (PVDENTRY *) ellNext((ELLNODE*)ppvdNode);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment