Permalink
Browse files

Show upstream name in gdb show_fair_peers command

  • Loading branch information...
1 parent c9c1697 commit 75840cf767a41e579b96fef2f22c0545969868e7 @gnosek committed Jun 29, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 .gdbinit
View
@@ -1,7 +1,7 @@
define show_fair_peer
set $n = (ngx_http_upstream_fair_shm_block_t *)$arg0
set $peers = $n->peers
- printf "upstream id: 0x%08x, current peer: %d/%d\n", $n->node.key, $peers->current, $peers->number
+ printf "upstream id: 0x%08x (%s), current peer: %d/%d\n", $n->node.key, $peers->name.data, $peers->current, $peers->number
set $i = 0
while $i < $peers->number
set $peer = &$peers->peer[$i]

0 comments on commit 75840cf

Please sign in to comment.