diff options
author | Justus Winter <justus@gnupg.org> | 2016-06-04 14:51:52 +0200 |
---|---|---|
committer | Justus Winter <justus@gnupg.org> | 2016-06-04 14:51:52 +0200 |
commit | 3d0357ea3bda6b046bece263f585e1c22d1d54bb (patch) | |
tree | dd70d161fb4f76540bd04a6ffb8f5716f4ef32d0 /debian/patches/leaks0001-xxx-print-fail.patch | |
parent | 3a8b473f58ea1c97ebc46dbbda0abde595777524 (diff) |
add patch series
Diffstat (limited to 'debian/patches/leaks0001-xxx-print-fail.patch')
-rw-r--r-- | debian/patches/leaks0001-xxx-print-fail.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/debian/patches/leaks0001-xxx-print-fail.patch b/debian/patches/leaks0001-xxx-print-fail.patch new file mode 100644 index 00000000..54ed0caf --- /dev/null +++ b/debian/patches/leaks0001-xxx-print-fail.patch @@ -0,0 +1,47 @@ +From ad90c651cf53321a1a9878045089fce648cfc0c4 Mon Sep 17 00:00:00 2001 +From: Justus Winter <justus@gnupg.org> +Date: Sat, 4 Jun 2016 04:40:44 +0200 +Subject: [PATCH hurd 1/2] xxx print fail + +--- + libshouldbeinlibc/assert-backtrace.c | 8 ++++++++ + libshouldbeinlibc/assert-backtrace.h | 6 ++++++ + 2 files changed, 14 insertions(+) + +diff --git a/libshouldbeinlibc/assert-backtrace.c b/libshouldbeinlibc/assert-backtrace.c +index ca23c8d..72a49e9 100644 +--- a/libshouldbeinlibc/assert-backtrace.c ++++ b/libshouldbeinlibc/assert-backtrace.c +@@ -76,4 +76,12 @@ __assert_perror_fail_backtrace (int errnum, + + } + ++void ++__print_fail_backtrace (const char *message, const char *file, ++ unsigned int line, const char *function) ++{ ++ __assert_fail_base_backtrace ("%s: %s:%u: %s: %s.\n", ++ message, file, line, function); ++} ++ + #endif /* ! defined NDEBUG */ +diff --git a/libshouldbeinlibc/assert-backtrace.h b/libshouldbeinlibc/assert-backtrace.h +index c54b810..b36e5b2 100644 +--- a/libshouldbeinlibc/assert-backtrace.h ++++ b/libshouldbeinlibc/assert-backtrace.h +@@ -42,6 +42,12 @@ void __assert_perror_fail_backtrace (int errnum, + const char *function) + __attribute__ ((noreturn, unused)); + ++/* Likewise, but prints the given MESSAGE. */ ++void ++__print_fail_backtrace (const char *message, const char *file, ++ unsigned int line, const char *function) ++ __attribute__ ((noreturn, unused)); ++ + #define assert_backtrace(expr) \ + ((expr) \ + ? (void) 0 \ +-- +2.1.4 + |