function cache_head_dump:string(_detail:long, _h:long) %{ struct cache_detail *detail = (struct cache_detail *)(long) kread(&(THIS->_detail)); struct cache_head *h = (struct cache_head *)(long) kread(&(THIS->_h)); char buf[MAXSTRINGLEN]; int cc=0; sprintf(buf+cc, "h %p valid %d neg %d pending %d flushing %d ", h, test_bit(0, &h->flags), test_bit(1, &h->flags), test_bit(2, &h->flags), (detail->flush_time > h->last_refresh)); cc = strlen(buf); snprintf(THIS->__retvalue, MAXSTRINGLEN, "%s", buf); CATCH_DEREF_FAULT(); %}