From 52f504f176087bc477994bf097c3445062f97beb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Sat, 2 Jan 2010 23:22:37 +0000 Subject: [PATCH] * add cputbuf which outputs a StrBuf to the client --- citadel/sysdep.c | 6 ++++++ citadel/sysdep_decls.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/citadel/sysdep.c b/citadel/sysdep.c index 13c5c9089..137e9c59b 100644 --- a/citadel/sysdep.c +++ b/citadel/sysdep.c @@ -518,6 +518,10 @@ int client_write(char *buf, int nbytes) return 0; } +void cputbuf(const StrBuf *Buf) { + client_write(ChrPtr(Buf), StrLength(Buf)); +} + /* * cprintf() Send formatted printable data to the client. @@ -826,6 +830,8 @@ void checkcrash(void) " For more information, please see:\n \n" " http://citadel.org/doku.php/faq:mastering_your_os:gdb#how.do.i.make.my.system.produce.core-files" "\n \n" +"http://www.4players.de/4players.php/walkthrough/Wii/9298/24733/Die_Chroniken_von_Narnia_Prinz_Kaspian_von_Narnia.html" + " If you have already done this, the core dump is likely to be found at %score.%d\n" , ctdl_run_dir, ForkedPid); diff --git a/citadel/sysdep_decls.h b/citadel/sysdep_decls.h index e61cc4096..13e9bcfc6 100644 --- a/citadel/sysdep_decls.h +++ b/citadel/sysdep_decls.h @@ -40,6 +40,8 @@ #define SIZE_T_FMT "%ld" #endif +void cputbuf(const StrBuf *Buf); + #ifdef __GNUC__ void cprintf (const char *format, ...) __attribute__((__format__(__printf__,1,2))); #else -- 2.39.2