diff --git a/Makefile b/Makefile index e585d31..c598eca 100644 --- a/Makefile +++ b/Makefile @@ -91,6 +91,10 @@ Q= E=true endif +# Debugging +#CFLAGS += -fsanitize=address -fPIC +#LDFLAGS += -lasan + # Flags CFLAGS += -Wall -Wextra -Wformat-security -funit-at-a-time -g -Og -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -std=c99 -D_POSIX_C_SOURCE=200809L # -Wconversion LDFLAGS += $(shell pkg-config $(PKG_CONFIG_EXTRA) --libs libusb-1.0) @@ -99,9 +103,6 @@ CPPFLAGS += $(shell pkg-config $(PKG_CONFIG_EXTRA) --cflags libusb-1.0) CPPFLAGS += $(OLD_URI) -DCORRTABLE_PATH=\"$(BACKEND_DATA_DIR)\" LIBLDFLAGS = -g -shared -# Debugging -#CFLAGS += -fsanitize=address - # List of backends BACKENDS = canonselphy canonselphyneo dnpds40 hiti kodak605 kodak1400 kodak6800 magicard mitsu70x mitsu9550 mitsud90 mitsup95d shinkos1245 shinkos2145 shinkos6145 shinkos6245 sonyupd sonyupdneo diff --git a/backend_mitsu70x.c b/backend_mitsu70x.c index 4c37b5e..a166f41 100644 --- a/backend_mitsu70x.c +++ b/backend_mitsu70x.c @@ -588,7 +588,7 @@ static int mitsu70x_attach(void *vctx, struct dyesub_connection *conn, uint8_t j /* Attempt to open the library */ if (mitsu_loadlib(&ctx->lib, ctx->conn->type)) #endif - WARNING("Dynamic library support not loaded, will be unable to print."); + WARNING("Dynamic library support not loaded, will be unable to print!\n"); struct mitsu70x_printerstatus_resp resp; int ret;