1
0
Fork 0
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:
Xorg 2022-09-23 18:44:11 +02:00
parent 3ed66b7613
commit dc406c4de1
No known key found for this signature in database
GPG key ID: 1E55EE2EFF18BC1A
2 changed files with 1 additions and 3 deletions

View file

@ -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, "");

View file

@ -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);