atd

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/atd
Log | Files | Refs

commit 1d91c9913b62b1dd90c6844abdc8bf53b47024b7
parent af229d54a39cd36a02a4ba61e3fbc9fd8eedd2c9
Author: Nihal Jere <nihal@nihaljere.xyz>
Date:   Mon, 26 Jul 2021 22:59:00 -0500

atd: print whole command

Diffstat:
Matd.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/atd.c b/atd.c @@ -189,7 +189,6 @@ lprint(char *buf, size_t len) size_t handle_resp(int fd, int idx) { - fprintf(stderr, "%s\n", __func__); char *start = fdbufs[idx].out, *ptr; enum status status = 0; @@ -253,7 +252,7 @@ handle_resp(int fd, int idx) if (status && fd > 0) send_status(fd, status); - fprintf(stderr, "%s: %d\n", __func__, length); + fprintf(stderr, "%s: %.*s\n", __func__, length, start); return length; }