Don't use %s as the format string in val_to_str().