@@ -738,7 +738,6 @@ static void print_info_continuous_wrapper(FILE *out, void *link)
738738{
739739 regdma_link_head_t head = REGDMA_LINK_HEAD (link );
740740 regdma_link_continuous_t * cons = __containerof (link , regdma_link_continuous_t , head );
741- assert ((cons -> stat .module & (cons -> stat .module - 1 )) == 0 );
742741 fprintf (out , LOG_COLOR_I " [%02d/%04x] link_ptr:%p, head: {mode:%s len:%d branch:%s skip_r:%s skip_b:%s eof:%s}, next:%p, backup start:%p, restore start:%p, buff_ptr:%p\n" LOG_RESET_COLOR ,
743742 __builtin_ffs (cons -> stat .module ) - 1 , cons -> stat .id , link ,
744743 s_link_mode_str [cons -> head .mode ], cons -> head .length , s_boolean_str [cons -> head .branch ], s_boolean_str [cons -> head .skip_r ], s_boolean_str [cons -> head .skip_b ], s_boolean_str [cons -> head .eof ],
@@ -752,7 +751,6 @@ static void print_info_addr_map_wrapper(FILE *out, void *link)
752751{
753752 regdma_link_head_t head = REGDMA_LINK_HEAD (link );
754753 regdma_link_addr_map_t * map = __containerof (link , regdma_link_addr_map_t , head );
755- assert ((map -> stat .module & (map -> stat .module - 1 )) == 0 );
756754 fprintf (out , LOG_COLOR_I " [%02d/%04x] link_ptr:%p, head: {mode:%s len:%d branch:%s skip_r:%s skip_b:%s eof:%s}, next:%p, backup start:%p, restore start:%p, buff_ptr:%p, map:{%" PRIx32 ",%" PRIx32 ",%" PRIx32 ",%" PRIx32 "}\n" LOG_RESET_COLOR ,
757755 __builtin_ffs (map -> stat .module ) - 1 , map -> stat .id , link ,
758756 s_link_mode_str [map -> head .mode ], map -> head .length , s_boolean_str [map -> head .branch ], s_boolean_str [map -> head .skip_r ], s_boolean_str [map -> head .skip_b ], s_boolean_str [map -> head .eof ],
@@ -776,11 +774,10 @@ static void print_info_branch_continuous_wrapper(FILE *out, void *link)
776774{
777775 regdma_link_head_t head = REGDMA_LINK_HEAD (link );
778776 regdma_link_branch_continuous_t * cons = __containerof (link , regdma_link_branch_continuous_t , head );
779- assert ((cons -> stat .module & (cons -> stat .module - 1 )) == 0 );
780- fprintf (out , LOG_COLOR_I " [%02d/%04x] link_ptr:%p, head: {mode:%s len:%d branch:%s skip_r:%s skip_b:%s eof:%s}, next:%p, backup start:%p, restore start:%p, buff_ptr:%p\n" LOG_RESET_COLOR ,
777+ fprintf (out , LOG_COLOR_I " [%02d/%04x] link_ptr:%p, head: {mode:%s len:%d branch:%s skip_r:%s skip_b:%s eof:%s}, next:{%p, %p, %p, %p}, backup start:%p, restore start:%p, buff_ptr:%p\n" LOG_RESET_COLOR ,
781778 __builtin_ffs (cons -> stat .module ) - 1 , cons -> stat .id , link ,
782779 s_link_mode_str [cons -> head .mode ], cons -> head .length , s_boolean_str [cons -> head .branch ], s_boolean_str [cons -> head .skip_r ], s_boolean_str [cons -> head .skip_b ], s_boolean_str [cons -> head .eof ],
783- cons -> body .next ,
780+ cons -> body .next [ 0 ], cons -> body . next [ 1 ], cons -> body . next [ 2 ], cons -> body . next [ 3 ] ,
784781 cons -> body .backup , cons -> body .restore ,
785782 cons -> body .mem );
786783 print_info_link_data (out , (const uint32_t * )cons -> body .mem , head .length );
@@ -790,11 +787,10 @@ static void print_info_branch_addr_map_wrapper(FILE *out, void *link)
790787{
791788 regdma_link_head_t head = REGDMA_LINK_HEAD (link );
792789 regdma_link_branch_addr_map_t * map = __containerof (link , regdma_link_branch_addr_map_t , head );
793- assert ((map -> stat .module & (map -> stat .module - 1 )) == 0 );
794- fprintf (out , LOG_COLOR_I " [%02d/%04x] link_ptr:%p, head: {mode:%s len:%d branch:%s skip_r:%s skip_b:%s eof:%s}, next:%p, backup start:%p, restore start:%p, buff_ptr:%p, map:{%" PRIx32 ",%" PRIx32 ",%" PRIx32 ",%" PRIx32 "}\n" LOG_RESET_COLOR ,
790+ fprintf (out , LOG_COLOR_I " [%02d/%04x] link_ptr:%p, head: {mode:%s len:%d branch:%s skip_r:%s skip_b:%s eof:%s}, next:{%p, %p, %p, %p}, backup start:%p, restore start:%p, buff_ptr:%p, map:{%" PRIx32 ",%" PRIx32 ",%" PRIx32 ",%" PRIx32 "}\n" LOG_RESET_COLOR ,
795791 __builtin_ffs (map -> stat .module ) - 1 , map -> stat .id , link ,
796792 s_link_mode_str [map -> head .mode ], map -> head .length , s_boolean_str [map -> head .branch ], s_boolean_str [map -> head .skip_r ], s_boolean_str [map -> head .skip_b ], s_boolean_str [map -> head .eof ],
797- map -> body .next ,
793+ map -> body .next [ 0 ], map -> body . next [ 1 ], map -> body . next [ 2 ], map -> body . next [ 3 ] ,
798794 map -> body .backup , map -> body .restore ,
799795 map -> body .mem , map -> body .map [0 ], map -> body .map [1 ], map -> body .map [2 ], map -> body .map [3 ]);
800796 print_info_link_data (out , (const uint32_t * )map -> body .mem , head .length );
@@ -803,10 +799,10 @@ static void print_info_branch_addr_map_wrapper(FILE *out, void *link)
803799static void print_info_branch_write_wait_wrapper (FILE * out , void * link )
804800{
805801 regdma_link_branch_write_wait_t * ww = __containerof (link , regdma_link_branch_write_wait_t , head );
806- fprintf (out , LOG_COLOR_I " [%02d/%04x] link_ptr:%p, head: {mode:%s len:%d branch:%s skip_r:%s skip_b:%s eof:%s}, next:%p , backup start:%p, value:%" PRIx32 ", mask:%" PRIx32 "\n" LOG_RESET_COLOR ,
802+ fprintf (out , LOG_COLOR_I " [%02d/%04x] link_ptr:%p, head: {mode:%s len:%d branch:%s skip_r:%s skip_b:%s eof:%s}, next:{%p, %p, %p, %p} , backup start:%p, value:%" PRIx32 ", mask:%" PRIx32 "\n" LOG_RESET_COLOR ,
807803 __builtin_ffs (ww -> stat .module ) - 1 , ww -> stat .id , link ,
808804 s_link_mode_str [ww -> head .mode ], ww -> head .length , s_boolean_str [ww -> head .branch ], s_boolean_str [ww -> head .skip_r ], s_boolean_str [ww -> head .skip_b ], s_boolean_str [ww -> head .eof ],
809- ww -> body .next ,
805+ ww -> body .next [ 0 ], ww -> body . next [ 1 ], ww -> body . next [ 2 ], ww -> body . next [ 3 ] ,
810806 ww -> body .backup , ww -> body .value , ww -> body .mask );
811807}
812808
0 commit comments