the quickest way is enable dynamic debug flag,
for example,
if you’re going to enable dev_dbg() for imx274.c # echo file imx274.c +p > /sys/kernel/debug/dynamic_debug/control
after that,
you’ll see debug logs enabled in dmesg.
I ended up adding loglevel=8 to the CMDLINE_ADD variable in p2771-0000.conf.common and reflashing the TX2 to guarantee that loglevel will be 8 at boot.