better messages

This commit is contained in:
tTh 2023-03-28 17:15:12 +02:00
parent d1a5a5b5c9
commit 26f6421653

10
edges.c
View File

@ -139,10 +139,10 @@ if (k) {
return k; return k;
} }
fprintf(stderr, " array @ %p\n", list->edges); fprintf(stderr, "\tarray @ %p\n", list->edges);
fprintf(stderr, " size %8d\n", list->size); fprintf(stderr, "\tsize %8d\n", list->size);
fprintf(stderr, " next free %8d\n", list->fidx); fprintf(stderr, "\tnext free %8d\n", list->fidx);
// fprintf(stderr, " magic 0x%08X\n", list->magic); // fprintf(stderr, "\tmagic 0x%08X\n", list->magic);
return 0; return 0;
} }
@ -161,7 +161,7 @@ if (k) {
fprintf(stderr, " list.fidx = %d\n", list->fidx); fprintf(stderr, " list.fidx = %d\n", list->fidx);
for (foo=0; foo<list->fidx; foo++) { for (foo=0; foo<list->fidx; foo++) {
printf("%d\t\t%5d %5d\n", foo, list->edges[foo].A, list->edges[foo].B); printf("%6d\t\t%5d %5d\n", foo, list->edges[foo].A, list->edges[foo].B);
} }
return -1; return -1;