From 9cdd5540a39e8a23fc6a670ef05b4d03aa44ad3a Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 21 Nov 2020 12:08:37 +0000 Subject: patches/print-error.diff: Print error numbers in FLAWLESSCALL calls --- debian/changelog | 1 + debian/patches/print-error.diff | 13 +++++++++++++ debian/patches/series | 1 + 3 files changed, 15 insertions(+) create mode 100644 debian/patches/print-error.diff diff --git a/debian/changelog b/debian/changelog index 1b7530280..6ad6d1d59 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ rumpkernel (0~20191130-5) UNRELEASED; urgency=medium * patches/ahcisata-atapi.diff: Add ATAPI support on top of AHCI. + * patches/print-error.diff: Print error numbers in FLAWLESSCALL calls. -- Samuel Thibault Sat, 21 Nov 2020 10:43:07 +0000 diff --git a/debian/patches/print-error.diff b/debian/patches/print-error.diff new file mode 100644 index 000000000..98b36da3e --- /dev/null +++ b/debian/patches/print-error.diff @@ -0,0 +1,13 @@ +Index: rumpkernel/buildrump.sh/src/sys/rump/include/rump-sys/kern.h +=================================================================== +--- rumpkernel.orig/buildrump.sh/src/sys/rump/include/rump-sys/kern.h ++++ rumpkernel/buildrump.sh/src/sys/rump/include/rump-sys/kern.h +@@ -116,7 +116,7 @@ static void rumpcompinit##type(void) + do { \ + int att_error; \ + if ((att_error = call) != 0) \ +- panic("\"%s\" failed", #call); \ ++ panic("\"%s\" failed: %d", #call, att_error); \ + } while (/*CONSTCOND*/0) + + #define RUMPMEM_UNLIMITED ((unsigned long)-1) diff --git a/debian/patches/series b/debian/patches/series index 5c00bf778..a5accbb00 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -9,3 +9,4 @@ gnumach-update rumpuser-rng-debug.diff machirqdev.diff ahcisata-atapi.diff +print-error.diff -- cgit v1.2.3