add additional information in die calls for debugging - scroll - scrollbackbuff… | |
git clone git://git.suckless.org/scroll | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 200c1a92277ddc3daf0cde1f4957090f5887b423 | |
parent bbdc448cf73235f0f9a9c02b679c9e6e46bfc5fd | |
Author: Jan Klemkow <[email protected]> | |
Date: Mon, 20 Apr 2020 22:08:47 +0200 | |
add additional information in die calls for debugging | |
Diffstat: | |
M scroll.c | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/scroll.c b/scroll.c | |
@@ -231,10 +231,10 @@ getcursorposition(int *x, int *y) | |
input[n] = '\0'; | |
if (sscanf(input, "\033[%d;%dR", x, y) != 2) | |
- die("parsing cursor position"); | |
+ die("parsing cursor position: %s", input); | |
if (x <= 0 || y <= 0) | |
- die("invalid cursor position"); | |
+ die("invalid cursor position: x=%d y=%d", x, y); | |
} | |
void |