aboutsummaryrefslogtreecommitdiffstats
path: root/src/slibc-error.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-08-30 03:50:02 +0200
committerMattias Andrée <maandree@operamail.com>2015-08-30 03:50:02 +0200
commit4f7926f062956728e0af5e6c29c6a90f3dbf747a (patch)
tree366535d18ab44dc8b8efde2f08326658b47c62ec /src/slibc-error.c
parentremove parameter names from header files to avoid potential errors on inclusion caused by conflictig macro names (diff)
downloadslibc-4f7926f062956728e0af5e6c29c6a90f3dbf747a.tar.gz
slibc-4f7926f062956728e0af5e6c29c6a90f3dbf747a.tar.bz2
slibc-4f7926f062956728e0af5e6c29c6a90f3dbf747a.tar.xz
m fix slibc-error
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/slibc-error.c')
-rw-r--r--src/slibc-error.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/slibc-error.c b/src/slibc-error.c
index 0094235..fe2f94b 100644
--- a/src/slibc-error.c
+++ b/src/slibc-error.c
@@ -15,6 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <slibc/internals.h>
#include <slibc-error.h>
#include <stdio.h>
#include <unistd.h>
@@ -56,12 +57,12 @@ void slibc_perror(const char* progname, const char* filename, int linenum, const
if (error_string == NULL)
error_string = strerror(*error_code);
fflush(stdout);
- fprintf(stderr, "%(\033[0;1;31m%)%s%(\033[21m%): %s%(\033[0m%)\n",
+ fprintf(stderr, _("%(\033[0;1;31m%)%s%(\033[21m%): %s%(\033[0m%)\n"),
tty, progname, tty, error_string, tty);
}
- fprintf(stderr, " at \033[1;34m%s\033[0m (\033[35m%s\033[0m:\033[32m%i\033[0m)",
- function, filename, linenum);
+ fprintf(stderr, _(" at %(\033[1;34m%)%s%(\033[0m%) (%(\033[35m%)%s%(\033[0m%):%(\033[32m%)%i%(\033[0m%))"),
+ tty, function, tty, tty, filename, tty, tty, linenum, tty);
if (format != NULL)
{
fprintf(stderr, "\n ");