As the only usage of `txt` in this function is as a parameter to `printf`, you can change this to:

```
const char *txt = "unknown";
if (mcetool_gconf_get_bool(...)) {
    txt = val ? "enabled" : "disabled";
}
printf(..., txt);
```

This saves local stack space, and avoids copying around memory (unconditional `strcpy()` and conditional `snprintf()`) and arguably makes it easier to read.