printf("%d: OnLookupComplete called [host=%s status=%x ai=%p]\n",
printf("%d: OnLookupComplete called [host=%s status=%x rec=%p]\n",
    NS_IMETHOD OnLookupComplete(nsIDNSRequest *request,                                nsIDNSRecord  *rec,                                nsresult       status)    {        printf("%d: OnLookupComplete called [host=%s status=%x ai=%p]\n",            mIndex, mHost.get(), status, (void*)rec);        if (NS_SUCCEEDED(status)) {            nsCAutoString buf;            rec->GetCanonicalName(buf);            printf("%d: canonname=%s\n", mIndex, buf.get());            while (NS_SUCCEEDED(rec->GetNextAddrAsString(buf)))                printf("%d: => %s\n", mIndex, buf.get());        }        return NS_OK;    }