mirror of
https://github.com/anrieff/libcpuid
synced 2024-11-10 22:59:13 +00:00
Do not print the same message twice when reading a raw CPUID dump
This commit is contained in:
parent
3ed66b7613
commit
dc406c4de1
2 changed files with 1 additions and 3 deletions
|
@ -692,8 +692,6 @@ int main(int argc, char** argv)
|
|||
|
||||
/* Need to dump raw CPUID data to file: */
|
||||
if (need_output) {
|
||||
if (verbose_level >= 1)
|
||||
printf("Writing raw CPUID dump to `%s'\n", raw_data_file);
|
||||
if (!strcmp(raw_data_file, "-"))
|
||||
/* Serialize to stdout */
|
||||
writeres = cpuid_serialize_all_raw_data(&raw_array, "");
|
||||
|
|
|
@ -368,7 +368,7 @@ static int cpuid_serialize_raw_data_internal(struct cpu_raw_data_t* single_raw,
|
|||
f = !strcmp(filename, "") ? stdin : fopen(filename, "wt");
|
||||
if (!f)
|
||||
return set_error(ERR_OPEN);
|
||||
debugf(1, "Writing RAW dump to '%s'\n", f == stdin ? "stdin" : filename);
|
||||
debugf(1, "Writing raw CPUID dump to '%s'\n", f == stdin ? "stdin" : filename);
|
||||
|
||||
/* Write RAW data to output file */
|
||||
fprintf(f, "version=%s\n", VERSION);
|
||||
|
|
Loading…
Reference in a new issue