Changeset View
Changeset View
Standalone View
Standalone View
libinput/context.cpp
Show All 38 Lines | 36 | { | |||
---|---|---|---|---|---|
39 | if (std::vsnprintf(buf, 1023, format, args) <= 0) { | 39 | if (std::vsnprintf(buf, 1023, format, args) <= 0) { | ||
40 | return; | 40 | return; | ||
41 | } | 41 | } | ||
42 | switch (priority) { | 42 | switch (priority) { | ||
43 | case LIBINPUT_LOG_PRIORITY_DEBUG: | 43 | case LIBINPUT_LOG_PRIORITY_DEBUG: | ||
44 | qCDebug(KWIN_LIBINPUT) << "Libinput:" << buf; | 44 | qCDebug(KWIN_LIBINPUT) << "Libinput:" << buf; | ||
45 | break; | 45 | break; | ||
46 | case LIBINPUT_LOG_PRIORITY_INFO: | 46 | case LIBINPUT_LOG_PRIORITY_INFO: | ||
47 | #if (QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)) | | |||
48 | qCInfo(KWIN_LIBINPUT) << "Libinput:" << buf; | 47 | qCInfo(KWIN_LIBINPUT) << "Libinput:" << buf; | ||
49 | #endif | | |||
50 | break; | 48 | break; | ||
51 | case LIBINPUT_LOG_PRIORITY_ERROR: | 49 | case LIBINPUT_LOG_PRIORITY_ERROR: | ||
52 | default: | 50 | default: | ||
53 | qCCritical(KWIN_LIBINPUT) << "Libinput:" << buf; | 51 | qCCritical(KWIN_LIBINPUT) << "Libinput:" << buf; | ||
54 | break; | 52 | break; | ||
55 | } | 53 | } | ||
56 | } | 54 | } | ||
57 | 55 | | |||
▲ Show 20 Lines • Show All 129 Lines • Show Last 20 Lines |