diff --git a/tools/intel_reg_read.c b/tools/intel_reg_read.c index ee6f126c..ae631be0 100644 --- a/tools/intel_reg_read.c +++ b/tools/intel_reg_read.c @@ -87,7 +87,7 @@ int main(int argc, char** argv) ret = 1; goto out; case 'c': - dwords = atoi(optarg); + dwords = strtol(optarg, NULL, 0); break; } }