]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/kecheng-kc-330b/protocol.c
Use driver name as the log prefix in standard functions
[libsigrok.git] / src / hardware / kecheng-kc-330b / protocol.c
index e1c8da17b910b4e25b703c923760591939976fa9..968ef6968872f86e46b074483d56f122a5a83097 100644 (file)
@@ -20,8 +20,6 @@
 #include <config.h>
 #include <string.h>
 #include "protocol.h"
-
-extern struct sr_dev_driver kecheng_kc_330b_driver_info;
 extern const uint64_t kecheng_kc_330b_sample_intervals[][2];
 
 SR_PRIV int kecheng_kc_330b_handle_events(int fd, int revents, void *cb_data)
@@ -53,7 +51,7 @@ SR_PRIV int kecheng_kc_330b_handle_events(int fd, int revents, void *cb_data)
        if (sdi->status == SR_ST_STOPPING) {
                libusb_free_transfer(devc->xfer);
                usb_source_remove(sdi->session, drvc->sr_ctx);
-               std_session_send_df_end(sdi, LOG_PREFIX);
+               std_session_send_df_end(sdi);
                sdi->status = SR_ST_ACTIVE;
                return TRUE;
        }