printf("====== Changed color pref %s to 0x%lx\n",
PRINTF("====== Changed color pref %s to 0x%lx\n",
static int PR_CALLBACK colorPrefChanged (const char *newpref, void *data){  nsLookAndFeelColorPref* np = (nsLookAndFeelColorPref*)data;  if (np)  {    nsresult rv;    NS_WITH_SERVICE(nsIPref, prefService, kPrefServiceCID, &rv);    if (NS_SUCCEEDED(rv) && prefService)    {      char *colorStr = 0;      rv = prefService->CopyCharPref(np->name, &colorStr);      if (NS_SUCCEEDED(rv) && colorStr[0])      {        nsString colorNSStr; colorNSStr.AssignWithConversion(colorStr);        nscolor thecolor;        if (NS_SUCCEEDED(NS_ColorNameToRGB(colorNSStr, &thecolor)))        {          np->isSet = PR_TRUE;          np->colorVar = (nscolor)thecolor;#ifdef DEBUG_akkana          printf("====== Changed color pref %s to 0x%lx\n",                 np->name, (long)np->colorVar);#endif        }        PL_strfree(colorStr);      }    }  }  return 0;}