Browse Source

Remove \r characters from printed strings in macros.h

tags/version_1.43
Denis Barbier 17 years ago
parent
commit
2d42373169
2 changed files with 6 additions and 5 deletions
  1. +1
    -0
      debian/changelog
  2. +5
    -5
      macros.h

+ 1
- 0
debian/changelog View File

@@ -12,6 +12,7 @@ tasksel (1.43) UNRELEASED; urgency=low
- Sort tasks when generating debian-tasks.desc so that number lines
in generated PO files do not change when different users build this
file.
- Remove \r characters from printed strings in macros.h.
* Konstantinos Margaritis
- Update Greek translations.



+ 5
- 5
macros.h View File

@@ -10,7 +10,7 @@
do { \
fprintf(stderr, "%s:%d ", __FILE__, __LINE__); \
fprintf(stderr, fmt, ##arg); \
fprintf(stderr, "\r\n"); \
fprintf(stderr, "\n"); \
} while (0);
#define ASSERT(cond) \
if (!(cond)) { \
@@ -39,17 +39,17 @@
#define DIE(fmt, arg...) \
do { \
if (ui_running()) ui_shutdown(); \
fprintf(stderr, _("Fatal error encountered at %s:%d\r\n\t"), __FILE__, __LINE__); \
fprintf(stderr, _("Fatal error encountered at %s:%d\n\t"), __FILE__, __LINE__); \
fprintf(stderr, fmt, ##arg); \
fprintf(stderr, "\r\n"); \
fprintf(stderr, "\n"); \
ABORT; \
} while (0);
#define PERROR(ctx) \
do { \
if (ui_running()) ui_shutdown(); \
fprintf(stderr, _("I/O error at %s:%d\r\n\t"), __FILE__, __LINE__); \
fprintf(stderr, "%s: %s\r\n", ctx, strerror(errno)); \
fprintf(stderr, _("I/O error at %s:%d\n\t"), __FILE__, __LINE__); \
fprintf(stderr, "%s: %s\n", ctx, strerror(errno)); \
ABORT; \
} while (0);


Loading…
Cancel
Save