void CHUNK::print_status(int level) { printf("%schunk %s\n", indent(level), name); set<VDA_CHUNK_HOST*>::iterator i; for (i=hosts.begin(); i!=hosts.end(); i++) { VDA_CHUNK_HOST* ch = *i; ch->print_status(level+1); } }
void CHUNK::print_status(int level) { printf("%schunk %s\n", indent(level), name); level++; printf( "%spresent on server: %s\n", indent(level), present_on_server?"yes":"no" ); set<VDA_CHUNK_HOST*>::iterator i; for (i=hosts.begin(); i!=hosts.end(); i++) { VDA_CHUNK_HOST* ch = *i; ch->print_status(level); } }