bsnprintf -> snprintf in queue_api