rem: else { rbyte = avr_read_byte(fd, i, memtype);   fprintf ( stderr, "          \r%4u  0x%02x", i, rbyte ); if (bi < bufsize) { buf[bi++] = rbyte; } }
context: int avr_read ( int fd, int memtype, unsigned start, unsigned n,                unsigned char * buf, int bufsize ){  unsigned char rbyte;  unsigned short data;  unsigned short end, i, bi;  switch (memtype) {    case AVR_FLASH  :     case AVR_EEPROM :       break;    default:      fprintf(stderr, "%s: avr_read(); internal error: invalid memtype=%d\n",              progname, memtype);      exit(1);      break;  }  end = start+n;  bi = 0;  for (i=start; i<end; i++) {    if (memtype == AVR_FLASH) {      rbyte = avr_read_byte(fd, i, AVR_FLASH_LO);  /* flash low byte */      fprintf ( stderr, "                    \r%4u  0x%02x", i, rbyte );      data = rbyte;      if (bi < bufsize) {        buf[bi++] = rbyte;      }      rbyte = avr_read_byte(fd, i, AVR_FLASH_HI);  /* flash high byte */      fprintf ( stderr, " 0x%02x", rbyte );      data |= (rbyte << 8);      if (bi < bufsize) {        buf[bi++] = rbyte;      }    }    else {      rbyte = avr_read_byte(fd, i, memtype);  /* eeprom byte */      fprintf ( stderr, "          \r%4u  0x%02x", i, rbyte );      if (bi < bufsize) {        buf[bi++] = rbyte;      }    }  }  fprintf ( stderr, "\n" );  return 0;}