2 * Kernel version printing routine.
4 * Copyright (c) 2018 The strace developers.
7 * SPDX-License-Identifier: LGPL-2.1-or-later
13 print_kernel_version(const unsigned long version)
15 if (xlat_verbose(xlat_verbosity) != XLAT_STYLE_ABBREV)
16 tprintf("%#lx", version);
18 if (xlat_verbose(xlat_verbosity) == XLAT_STYLE_RAW)
21 if (xlat_verbose(xlat_verbosity) == XLAT_STYLE_VERBOSE)
24 tprintf("KERNEL_VERSION(%lu, %lu, %lu)",
26 (version >> 8) & 0xFF,
29 if (xlat_verbose(xlat_verbosity) == XLAT_STYLE_VERBOSE)