cregit-Linux how code gets into the kernel

Release 4.14 sound/oss/bin2hex.c

Directory: sound/oss
// SPDX-License-Identifier: GPL-2.0
#include <stdio.h>
#include <string.h>
#include <stdlib.h>


int main( int argc, const char * argv [] ) { const char * varname; int i = 0; int c; int id = 0; if(argv[1] && strcmp(argv[1],"-i")==0) { argv++; argc--; id=1; } if(argc==1) { fprintf(stderr, "bin2hex: [-i] firmware\n"); exit(1); } varname = argv[1]; printf( "/* automatically generated by bin2hex */\n" ); printf( "static unsigned char %s [] %s =\n{\n", varname , id?"__initdata":""); while ( ( c = getchar( ) ) != EOF ) { if ( i != 0 && i % 10 == 0 ) printf( "\n" ); printf( "0x%02lx,", c & 0xFFl ); i++; } printf( "};\nstatic int %sLen = %d;\n", varname, i ); return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)162100.00%3100.00%
Total162100.00%3100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)16897.67%466.67%
Dave Jones31.74%116.67%
Greg Kroah-Hartman10.58%116.67%
Total172100.00%6100.00%
Directory: sound/oss
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.