From 7b8cf7c89a8e242bbaed84721bdd98a8dd6f1a88 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 21 Jun 2010 05:30:42 +0000 Subject: [PATCH] * tls_pbuf.cc (tmp_pathbuf::w_get): Report what's failing when too many buffers are in use. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/tls_pbuf.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 9783641f7..c26901e5e 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2010-06-21 Christopher Faylor + + * tls_pbuf.cc (tmp_pathbuf::w_get): Report what's failing when too many + buffers are in use. + 2010-06-17 Corinna Vinschen * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Fetch stat diff --git a/winsup/cygwin/tls_pbuf.cc b/winsup/cygwin/tls_pbuf.cc index 1f4b74807..f8102db8e 100644 --- a/winsup/cygwin/tls_pbuf.cc +++ b/winsup/cygwin/tls_pbuf.cc @@ -50,7 +50,7 @@ PWCHAR tmp_pathbuf::w_get () { if (tls_pbuf.w_cnt >= TP_NUM_W_BUFS) - api_fatal ("Internal error: TP_NUM_W_BUFS too small."); + api_fatal ("Internal error: TP_NUM_W_BUFS too small %d >= %d.", tls_pbuf.w_cnt, TP_NUM_W_BUFS); if (!tls_pbuf.w_buf[tls_pbuf.w_cnt] && !(tls_pbuf.w_buf[tls_pbuf.w_cnt] = (PWCHAR) malloc (NT_MAX_PATH * sizeof (WCHAR)))) -- 2.43.5