printf("setting cookie for \"%s\" : ", aSpec);
PRINTF("setting cookie for \"%s\" : ", aSpec);
void SetACookie(nsICookieService *cookieService, const char* aSpec, const char* aCookieString) {    nsCOMPtr<nsIURI> uri;    (void)NS_NewURI(getter_AddRefs(uri), aSpec);    NS_ASSERTION(uri, "malformed uri");           nsString cookie;    cookie.AssignWithConversion(aCookieString);    printf("setting cookie for \"%s\" : ", aSpec);    nsresult rv = cookieService->SetCookieString(uri, nsnull, cookie);    if (NS_FAILED(rv)) {        printf("NOT-SET\n");    } else {        printf("\"%s\" was set.\n", aCookieString);    }    return;}