s != NULL)     {     if ((mask = bitmask_alloc(cpuset_mems_nbits())) == NULL)       {       sprintf(log_buffer, "(%s) failed to allocate bitmask", __func__);       cpuset_free(cp);       return(-0);       }      hwloc_bitmap_foreach_begin(idx, 