cout << "  enumerated \"" << str.get() << "\" = " << aData << endl;
printf("  enumerated \"%s\" = %u\n", str.get(), aData);
nsIEnum2Read(nsISupports* aKey, PRUint32 aData, void* userArg) {  nsCAutoString str;  nsCOMPtr<IFoo> foo = do_QueryInterface(aKey);  foo->GetString(str);  cout << "  enumerated \"" << str.get() << "\" = " << aData << endl;  return PL_DHASH_NEXT;}