Skip to contentSkip to conversation

libceph: trivial fix for the incorrect debug output

PATCH In review Jiaju Zhang 2 participants 3 messages Jul 15, 2012 – Jul 16, 2012 Ceph common code (libceph)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libceph: trivial fix for the incorrect debug output

This is a trivial fix for the debug output, as it is inconsistent with the function name so may confuse people when debugging.

---
 net/ceph/osd_client.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/ceph/osd_client.c +1 -1
index 1ffebed..ad6d745 100644
@@ -688,7 +688,7 @@ static void __remove_osd(struct ceph_osd_client *osdc, struct ceph_osd *osd)
 
 static void remove_all_osds(struct ceph_osd_client *osdc)
 {
-	dout("__remove_old_osds %p\n", osdc);
+	dout("__remove_all_osds %p\n", osdc);
 	mutex_lock(&osdc->request_mutex);
 	while (!RB_EMPTY_ROOT(&osdc->osds)) {
 		struct ceph_osd *osd = rb_entry(rb_first(&osdc->osds),
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Jiaju Zhang

This is a trivial fix for the debug output, as it is inconsistent with the function name so may confuse people when debugging.

I have been converting these to use __func__ whenever I touch code nearby. Mind if I do that here as well?

Quoted 9 lines
---
 net/ceph/osd_client.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/ceph/osd_client.c +0 -0
index 1ffebed..ad6d745 100644

net/ceph/osd_client.c static void __remove_osd(struct ceph_osd_client *osdc, struct ceph_osd *osd) · line 691

Quoted 5 lines
net/ceph/osd_client.c +1 -1
@@ -688,7 +688,7 @@ static void __remove_osd(struct ceph_osd_client *osdc, struct ceph_osd *osd)
 
 static void remove_all_osds(struct ceph_osd_client *osdc)
 {
-	dout("__remove_old_osds %p\n", osdc);
+	dout("__remove_all_osds %p\n", osdc);
        dout("%s %p\n", __func__, osdc);
Quoted 8 lines
net/ceph/osd_client.c +0 -1
 	mutex_lock(&osdc->request_mutex);
 	while (!RB_EMPTY_ROOT(&osdc->osds)) {
 		struct ceph_osd *osd = rb_entry(rb_first(&osdc->osds),
--

To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 10 lines · Alex Elder
Quoted 4 lines · Jiaju Zhang

This is a trivial fix for the debug output, as it is inconsistent with the function name so may confuse people when debugging.

I have been converting these to use __func__ whenever I touch code nearby. Mind if I do that here as well?

Oh, please do;) Using __func__ would be good.
Thanks for the review.

Thanks,
Jiaju

Quoted 32 lines
Quoted 10 lines
---
 net/ceph/osd_client.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/ceph/osd_client.c +0 -0
index 1ffebed..ad6d745 100644

net/ceph/osd_client.c static void __remove_osd(struct ceph_osd_client *osdc, struct ceph_osd *osd) · line 691

Quoted 5 lines
net/ceph/osd_client.c +1 -1
@@ -688,7 +688,7 @@ static void __remove_osd(struct ceph_osd_client *osdc, struct ceph_osd *osd)
 
 static void remove_all_osds(struct ceph_osd_client *osdc)
 {
-	dout("__remove_old_osds %p\n", osdc);
+	dout("__remove_all_osds %p\n", osdc);
        dout("%s %p\n", __func__, osdc);
Quoted 8 lines
net/ceph/osd_client.c +0 -1
 	mutex_lock(&osdc->request_mutex);
 	while (!RB_EMPTY_ROOT(&osdc->osds)) {
 		struct ceph_osd *osd = rb_entry(rb_first(&osdc->osds),
--

To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html