All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch 7/7] tabled: Improve messages in storage.c
@ 2009-11-14  6:37 Pete Zaitcev
  2009-11-14  8:40 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Pete Zaitcev @ 2009-11-14  6:37 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Project Hail List

Mostly, add IDs so we can see which job and which node fails.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>

---
 server/storage.c |   16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/server/storage.c b/server/storage.c
index f1822f7..fdb3fc1 100644
--- a/server/storage.c
+++ b/server/storage.c
@@ -102,8 +102,9 @@ int stor_put_start(struct open_chunk *cep, void (*cb)(struct open_chunk *),
 	sprintf(stckey, stor_key_fmt, (unsigned long long) key);
 	if (!stc_put_startz(cep->stc, stckey, size, &cep->wfd, 0)) {
 		if (debugging)
-			applog(LOG_INFO, "stor put %s new for %lld error",
-			       stckey, (long long) size);
+			applog(LOG_INFO,
+			       "stor nid %u put %s new for %lld error",
+			       cep->node->id, stckey, (long long) size);
 		return -EIO;
 	}
 	cep->wtogo = size;
@@ -112,8 +113,8 @@ int stor_put_start(struct open_chunk *cep, void (*cb)(struct open_chunk *),
 	event_set(&cep->wevt, cep->wfd, EV_WRITE, stor_write_event, cep);
 
 	if (debugging)
-		applog(LOG_INFO, "stor put %s new for %lld",
-		       stckey, (long long) size);
+		applog(LOG_INFO, "stor nid %u put %s new for %lld",
+		       cep->node->id, stckey, (long long) size);
 
 	return 0;
 }
@@ -139,7 +140,8 @@ int stor_open_read(struct open_chunk *cep, void (*cb)(struct open_chunk *),
 	sprintf(stckey, stor_key_fmt, (unsigned long long) key);
 	if (!stc_get_startz(cep->stc, stckey, &cep->rfd, &size)) {
 		if (debugging)
-			applog(LOG_INFO, "stor put %s error", stckey);
+			applog(LOG_INFO, "stor nid %u get %s error",
+			       cep->node->id, stckey);
 		return -EIO;
 	}
 	*psize = size;
@@ -149,8 +151,8 @@ int stor_open_read(struct open_chunk *cep, void (*cb)(struct open_chunk *),
 	event_set(&cep->revt, cep->rfd, EV_READ, stor_read_event, cep);
 
 	if (debugging)
-		applog(LOG_INFO, "stor get %s size %lld",
-		       stckey, (long long) size);
+		applog(LOG_INFO, "stor nid %u get %s size %lld",
+		       cep->node->id, stckey, (long long) size);
 
 	return 0;
 }

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-14  8:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-14  6:37 [Patch 7/7] tabled: Improve messages in storage.c Pete Zaitcev
2009-11-14  8:40 ` Jeff Garzik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.