[PATCH] Add extra debug output with channel mode and type