libevent formatting