|
|
@@ -410,7 +410,6 @@ static void set_timing_mode(int this_option_offset, struct cgpu_info *icarus)
|
|
|
|
|
|
static uint32_t mask(int work_division)
|
|
|
{
|
|
|
- char err_buf[BUFSIZ+1];
|
|
|
uint32_t nonce_mask = 0x7fffffff;
|
|
|
|
|
|
// yes we can calculate these, but this way it's easy to see what they are
|
|
|
@@ -428,8 +427,7 @@ static uint32_t mask(int work_division)
|
|
|
nonce_mask = 0x1fffffff;
|
|
|
break;
|
|
|
default:
|
|
|
- sprintf(err_buf, "Invalid2 icarus-options for work_division (%d) must be 1, 2, 4 or 8", work_division);
|
|
|
- quit(1, err_buf);
|
|
|
+ quit(1, "Invalid2 icarus-options for work_division (%d) must be 1, 2, 4 or 8", work_division);
|
|
|
}
|
|
|
|
|
|
return nonce_mask;
|
|
|
@@ -441,7 +439,6 @@ static void get_options(int this_option_offset, struct ICARUS_INFO *info)
|
|
|
int *work_division = &info->work_division;
|
|
|
int *fpga_count = &info->fpga_count;
|
|
|
|
|
|
- char err_buf[BUFSIZ+1];
|
|
|
char buf[BUFSIZ+1];
|
|
|
char *ptr, *comma, *colon, *colon2;
|
|
|
size_t max;
|
|
|
@@ -485,8 +482,7 @@ static void get_options(int this_option_offset, struct ICARUS_INFO *info)
|
|
|
*baud = 57600;
|
|
|
break;
|
|
|
default:
|
|
|
- sprintf(err_buf, "Invalid icarus-options for baud (%s) must be 115200 or 57600", buf);
|
|
|
- quit(1, err_buf);
|
|
|
+ quit(1, "Invalid icarus-options for baud (%s) must be 115200 or 57600", buf);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -502,8 +498,7 @@ static void get_options(int this_option_offset, struct ICARUS_INFO *info)
|
|
|
*work_division = tmp;
|
|
|
*fpga_count = tmp; // default to the same
|
|
|
} else {
|
|
|
- sprintf(err_buf, "Invalid icarus-options for work_division (%s) must be 1, 2, 4 or 8", colon);
|
|
|
- quit(1, err_buf);
|
|
|
+ quit(1, "Invalid icarus-options for work_division (%s) must be 1, 2, 4 or 8", colon);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -518,8 +513,7 @@ static void get_options(int this_option_offset, struct ICARUS_INFO *info)
|
|
|
if (tmp > 0 && tmp <= *work_division)
|
|
|
*fpga_count = tmp;
|
|
|
else {
|
|
|
- sprintf(err_buf, "Invalid icarus-options for fpga_count (%s) must be >0 and <=work_division (%d)", colon2, *work_division);
|
|
|
- quit(1, err_buf);
|
|
|
+ quit(1, "Invalid icarus-options for fpga_count (%s) must be >0 and <=work_division (%d)", colon2, *work_division);
|
|
|
}
|
|
|
}
|
|
|
|