Skip to content

Commit bbb3015

Browse files
esyrldv-alt
authored andcommitted
open: use print_xlat_ex for printing open modes
In order to respect xlat style setting. * open.c (tprint_open_modes): Use print_xlat_ex instead of tprint_open_modes.
1 parent 6cf810b commit bbb3015

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

open.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ sprint_open_modes(unsigned int flags)
113113
void
114114
tprint_open_modes(unsigned int flags)
115115
{
116-
tprints(sprint_open_modes(flags) + sizeof("flags"));
116+
print_xlat_ex(flags, sprint_open_modes(flags) + sizeof("flags"),
117+
XLAT_STYLE_DEFAULT);
117118
}
118119

119120
#ifdef O_TMPFILE

0 commit comments

Comments
 (0)