In a few places in our code we use this pattern:
const char* msg = ss.as_string(true /* on C-heap */);
log_debug(nmt)("%s", msg);
which can be simplified to:
log_debug(nmt)("%s", ss.freeze());
const char* msg = ss.as_string(true /* on C-heap */);
log_debug(nmt)("%s", msg);
which can be simplified to:
log_debug(nmt)("%s", ss.freeze());