src: ldr: Make use of functionality provided by logging module