UCBerkeleySETI/rawspec

rawspec.c should write "bad obsnchan/nants: 192 % 20 != 0" to stderr

Closed this issue · 0 comments

In rawspec.c, line 585, the error message is being written to stdout; it should go to stderr.

      if(fi == 0) {
        // Verify that obsnchan is divisible by nants
        if(raw_hdr.obsnchan % raw_hdr.nants != 0) {
          printf("bad obsnchan/nants: %u %% %u != 0\n",     // <-------------------------- fprintf(stderr
              raw_hdr.obsnchan, raw_hdr.nants);
          close(fdin);
          break; // Goto next stem
        }