diff --git a/tools/btmon-logger.c b/tools/btmon-logger.c
index c3ba179..1a42824 100644
--- a/tools/btmon-logger.c
+++ b/tools/btmon-logger.c
#include "src/shared/mainloop.h"
#include "src/shared/btsnoop.h"
-#include "src/systemd.h"
-
#define MONITOR_INDEX_NONE 0xffff
struct monitor_hdr {
mainloop_init();
- sd_notify(0, "STATUS=Starting up");
+ mainloop_sd_notify("STATUS=Starting up");
while (true) {
int opt;
printf("Bluetooth monitor logger ver %s\n", VERSION);
- sd_notify(0, "STATUS=Running");
- sd_notify(0, "READY=1");
+ mainloop_sd_notify("STATUS=Running");
+ mainloop_sd_notify("READY=1");
exit_status = mainloop_run();
- sd_notify(0, "STATUS=Quitting");
+ mainloop_sd_notify("STATUS=Quitting");
btsnoop_unref(btsnoop_file);