X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=scripts%2Fif_ath_hal_generator.pl;h=6bffc1165327b7fc08b0637e4017a80a3f33d980;hb=f3a89f43532bf3821cc73aedd639c28af0407fc5;hp=e1d78da8d50ef50230e817e335e530399444a81f;hpb=77d9f966c07c373b92f775191951516c616df31a;p=madwifi%2F.git diff --git a/scripts/if_ath_hal_generator.pl b/scripts/if_ath_hal_generator.pl index e1d78da..6bffc11 100755 --- a/scripts/if_ath_hal_generator.pl +++ b/scripts/if_ath_hal_generator.pl @@ -194,7 +194,7 @@ my $header = <ah_sc);"; print OUTPUT "\n\tath_hal_set_function(__func__);"; + print OUTPUT "\n\tath_hal_set_device(SC_DEV_NAME(ah->ah_sc));"; print OUTPUT "\n\t"; if ( !$ret_void ) { print OUTPUT "ret = "; @@ -347,6 +348,7 @@ sub generate_output() { } print OUTPUT ");"; print OUTPUT "\n\tath_hal_set_function(NULL);"; + print OUTPUT "\n\tath_hal_set_device(NULL);"; print OUTPUT "\n\tATH_HAL_UNLOCK_IRQ(ah->ah_sc);"; if ( !$ret_void ) { print OUTPUT "\n\treturn ret;"; @@ -381,7 +383,7 @@ sub generate_output() { print OUTPUT format_type( $types[$i] ) . $names[$i]; } print OUTPUT ") */"; - print OUTPUT "\n\t\t__print_symbol(\"%s=" . $member_name + print OUTPUT "\n\t__print_symbol(\"%s=" . $member_name . "\\n\", (unsigned long)ah->" . $member_name . ");"; } @@ -416,6 +418,7 @@ sub main () { } generate_output(); close OUTPUT; + exec "./madwifi-indent $output_header"; } main();