Browse Source

mollyguard + debug code

master
tth 6 months ago
parent
commit
c30e073abd
1 changed files with 11 additions and 2 deletions
  1. +11
    -2
      Fonderie/fifo.c

+ 11
- 2
Fonderie/fifo.c View File

@ -51,6 +51,11 @@ fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__,
pfifo, destination, step);
#endif
if (step<1){
fprintf(stderr, "***** %s invalid step %d\n", __func__, step);
exit(1);
}
if (NULL==destination) {
pdest = &(pfifo->total); }
else {
@ -68,11 +73,11 @@ for (idx=0; idx<pfifo->nbslots; idx += step) {
}
}
/* XXX
#if 0
fprintf(stderr, "*** %s:%s writing debugB file ***\n",
__FILE__, __func__);
fimg_dump_to_file(&g_fifo.total, "debugB.fimg", 0);
XXX */
#endif
return 0;
}
@ -96,6 +101,10 @@ if (foo) {
return foo;
}
#if 0
fimg_dump_to_file(&g_fifo.total, "outputXXX.fimg", 0);
#endif
foo = fimg_export_picture(&g_fifo.total, fname, 0);
if (foo) {
fprintf(stderr, "ERR EXPORT '%s' is %d\n", fname, foo);


Loading…
Cancel
Save