Date:2013-01-31 14:51:44 (6 years 7 months ago)
Author:Werner Almesberger
Commit:8b69d26fa934f09b4760b7bbc27bd379c1598176
Message:ubb-la/gui.c: make debug output clearer and more detailed

Files: ubb-la/gui.c (3 diffs)

Change Details

ubb-la/gui.c
232232    int last[4] = { -1, -1, -1, -1};
233233    uint8_t v, bit;
234234
235    DEBUG("in: %d-%d (%d) Sa %d-%d (%d) pix %d f (%d)\n",
235    DEBUG("in: %d-%d (%d) Sa; %d-%d (%d) pix; %d f (%d)\n",
236236        skip, nibbles, nibbles-skip, x0, x1, x1-x0, f, f*(nibbles-skip));
237237    x = x0;
238238    for (i = skip; i != nibbles; i++) {
...... 
261261    int changes[4], last[4] = { -1, -1, -1, -1}, next[4];
262262    uint8_t v, bit;
263263
264    DEBUG("out: %d-%d (%d) Sa %d-%d (%d) pix %d f (%d)\n",
264    DEBUG("out: %d-%d (%d) Sa; %d-%d (%d) pix; %d f (%d)\n",
265265        skip, nibbles, nibbles-skip, x0, x1, x1-x0, f, f*(x1-x0));
266266    for (x = x0; x != x1; x++) {
267267        n = i+f;
...... 
301301
302302    xm = (x0+x1) >> 1;
303303    dp = pos-((nibbles+skip) >> 1);
304    DEBUG("show: %d-%d Sa; %d-%d pix; pos %d dp %d; xm %d xcenter %d\n",
305        skip, nibbles, x0, x1, pos, dp, xm, XCENTER);
304306    if (zoom < 0) {
305307        s = (x1-x0) << -zoom;
306308        show_map(skip, nibbles, pos-s/2, pos+s/2);

Archive Download the corresponding diff file

Branches:
master



interactive