]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/procfs.c
gdb: don't try to style content in error calls
[thirdparty/binutils-gdb.git] / gdb / procfs.c
index 1410bbc0d7d652a398ca379befb51dffa813026d..0eafc2eddcc146fd0fce37094969bb410a214a7a 100644 (file)
@@ -605,10 +605,8 @@ static void
 proc_error (procinfo *pi, const char *func, int line)
 {
   int saved_errno = errno;
-  error ("procfs: %s line %d, %ps: %s",
-        func, line, styled_string (file_name_style.style (),
-                                   pi->pathname),
-        safe_strerror (saved_errno));
+  error ("procfs: %s line %d, %s: %s",
+        func, line, pi->pathname, safe_strerror (saved_errno));
 }
 
 /* Updates the status struct in the procinfo.  There is a 'valid'