add debug log interface for mtdflash device