From 46043704da61acc0a55977771f4afd78502a5366 Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Sun, 16 Apr 2023 20:48:38 +0900 Subject: [PATCH] rtkit: Drop oslog support Nobody can figure out where this code came from and it's broken for devices where OSLog is actually implemented these days... let's drop it and see if anything complains. Signed-off-by: Hector Martin --- src/rtkit.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/rtkit.c b/src/rtkit.c index db8025836..7e22b0a71 100644 --- a/src/rtkit.c +++ b/src/rtkit.c @@ -438,15 +438,7 @@ int rtkit_recv(rtkit_dev_t *rtk, struct rtkit_message *msg) } break; case RTKIT_EP_OSLOG: - switch (msgtype) { - case MSG_OSLOG_INIT: - msg->msg = FIELD_PREP(MGMT_TYPE, MSG_OSLOG_ACK); - if (!rtkit_send(rtk, msg)) - rtkit_printf("unable to ACK oslog init message\n"); - break; - default: - rtkit_printf("unknown oslog message %x\n", msgtype); - } + rtkit_printf("unknown oslog message %lx\n", msg->msg); break; default: rtkit_printf("message to unknown system endpoint 0x%02x: %lx\n", msg->ep, msg->msg);