mollyguard + debug code

This commit is contained in:
tth 2021-05-10 00:04:10 +02:00
parent f67cd9be3e
commit c30e073abd

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);