| # | Line 349 | Line 349 | report_depth(char *nm) /* report current function ca | |
|---|---|---|
| 349 | { | |
| 350 | char msg[RMAXWORD+48]; | |
| 351 | ||
| 352 | < | sprintf(msg, "%s(): depth level at %lu\n", nm, next_dreport); |
| 352 | > | sprintf(msg, "%s(): depth level at %lu\n", nm, curdepth); |
| 353 | wputs(msg); | |
| 354 | < | next_dreport *= 10; |
| 354 | > | if (curdepth >= next_dreport) |
| 355 | > | next_dreport *= 10; |
| 356 | } | |
| 357 | ||
| 358 | ||
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |