rem: if ((i % 16 == 0)||(i == (size-1))) fprintf(stderr, "                    \r%4lu  0x%02x", i, rbyte);
add: if ((i % 16 == 0)||(i == (size-1))) { fprintf(stderr, "\r        \r%6lu", i); }
context: int avr_read(int fd, AVRPART * p, char * memtype, int size, int verbose){  unsigned char    rbyte;  unsigned long    i;  unsigned char  * buf;  AVRMEM * mem;  int rc;  mem = avr_locate_mem(p, memtype);  if (mem == NULL) {    fprintf(stderr, "No \"%s\" memory for part %s\n",            memtype, p->desc);    return -1;  }  buf  = mem->buf;  if (size == 0) {    size = mem->size;  }  for (i=0; i<size; i++) {    rc = avr_read_byte(fd, p, mem, i, &rbyte);    if (rc != 0) {      fprintf(stderr, "avr_read(): error reading address 0x%04lx\n", i);      if (rc == -1)         fprintf(stderr,                 "    read operation not supported for memory \"%s\"\n",                memtype);      return -2;    }    buf[i] = rbyte;    if (verbose) {      if ((i % 16 == 0)||(i == (size-1)))        fprintf(stderr, "                    \r%4lu  0x%02x", i, rbyte);    }  }  fprintf(stderr, "\n");  return i;}