xbc_snprint_cmdline
len = xbc_snprint_cmdline(NULL, 0, root);
ret = xbc_snprint_cmdline(new_cmdline, len + 1, root);