summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sna/sna_cpu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sna/sna_cpu.c b/src/sna/sna_cpu.c
index 489bf6c8..c96b21f0 100644
--- a/src/sna/sna_cpu.c
+++ b/src/sna/sna_cpu.c
@@ -108,7 +108,9 @@ char *sna_cpu_features_to_string(unsigned features, char *line)
char *ret = line;
#ifdef __x86_64__
- line += sprintf (line, ", x86-64");
+ line += sprintf (line, "x86-64");
+#else
+ line += sprintf (line, "x86");
#endif
if (features & SSE2)
@@ -126,5 +128,5 @@ char *sna_cpu_features_to_string(unsigned features, char *line)
if (features & AVX2)
line += sprintf (line, ", avx2");
- return ret + 2;
+ return ret;
}