Alternatively, format the number value directly and get rid of the extra `txt` variable:

```
if (mcetool_gconf_get_int(...)) {
     printf("%-"PAD1"s %d (%%)\n", "Led breathing battery limit:", (int)val);
} else {
     printf("%-"PAD1"s unknown\n", "Led breathing battery limit:");
}
```

Again, reduces complexity and makes the output nicer ("unknown" instead of "unknown (%)").