diff options
author | erdgeist <> | 2008-10-17 15:21:11 +0000 |
---|---|---|
committer | erdgeist <> | 2008-10-17 15:21:11 +0000 |
commit | f4283be67732c2edce701762d871cf7b8495dd4a (patch) | |
tree | d54c3b6f68f3d00dfceda7367cccf7d76787eb5a /ot_accesslist.c | |
parent | 0deb06d5442d4d65cf4251428d5977396cfbf023 (diff) |
Fix debug output for addresses >127
Diffstat (limited to 'ot_accesslist.c')
-rw-r--r-- | ot_accesslist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ot_accesslist.c b/ot_accesslist.c index 412c539..91e99b3 100644 --- a/ot_accesslist.c +++ b/ot_accesslist.c | |||
@@ -107,7 +107,8 @@ int accesslist_blessip( char *ip, ot_permissions permissions ) { | |||
107 | memmove( g_adminip_addresses + g_adminip_count, ip, 4 ); | 107 | memmove( g_adminip_addresses + g_adminip_count, ip, 4 ); |
108 | g_adminip_permissions[ g_adminip_count++ ] = permissions; | 108 | g_adminip_permissions[ g_adminip_count++ ] = permissions; |
109 | #ifdef _DEBUG | 109 | #ifdef _DEBUG |
110 | fprintf( stderr, "Blessing ip address %d.%d.%d.%d with:", (uint8_t)ip[0], (uint8_t)ip[1], (uint8_t)ip[2], (uint8_t)ip[3]); | 110 | uint8_t *_ip = (uint8_t*)ip; |
111 | fprintf( stderr, "Blessing ip address %d.%d.%d.%d with:", _ip[0], _ip[1], _ip[2], _ip[3]); | ||
111 | if( permissions & OT_PERMISSION_MAY_STAT ) fputs( " may_fetch_stats", stderr ); | 112 | if( permissions & OT_PERMISSION_MAY_STAT ) fputs( " may_fetch_stats", stderr ); |
112 | if( permissions & OT_PERMISSION_MAY_SYNC ) fputs( " may_sync_batch", stderr ); | 113 | if( permissions & OT_PERMISSION_MAY_SYNC ) fputs( " may_sync_batch", stderr ); |
113 | if( permissions & OT_PERMISSION_MAY_LIVESYNC ) fputs( " may_sync_live", stderr ); | 114 | if( permissions & OT_PERMISSION_MAY_LIVESYNC ) fputs( " may_sync_live", stderr ); |