topo_mod_asprintf
extern int topo_mod_asprintf(topo_mod_t *, char **, const char *,
if (topo_mod_asprintf(mod, &mfg_key, "module.%s.mfg-id", name) == -1 ||
topo_mod_asprintf(mod, &mfg_str_key, "module.%s.mfg-name",
topo_mod_asprintf(mod, &type_key, "module.%s.type", name) == -1 ||
topo_mod_asprintf(mod, &rev_key, "module.%s.revision", name) ==
if (topo_mod_asprintf(mod, &strs[i], "0x%x:0x%x", data[0],