1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

more $d -> %d fixes

This commit is contained in:
Mike Smith 1999-03-19 00:35:07 +00:00
parent a528364ed0
commit ddc4659f9d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44877

View File

@ -21,7 +21,7 @@ DONE
cat >${UPPER} <<DONE
# Configuration file for kernel type: ${UPPER}
ident ${UPPER}
# \$Id: make_pseudo_driver.sh,v 1.2 1997/12/30 03:23:13 julian Exp $"
# \$Id: make_pseudo_driver.sh,v 1.3 1998/10/22 16:12:16 bde Exp $"
DONE
grep -v GENERIC < GENERIC >>${UPPER}
@ -37,7 +37,7 @@ cat >../../dev/${1}.c <<DONE
* Copyright ME
*
* ${1} driver
* \$Id: make_pseudo_driver.sh,v 1.2 1997/12/30 03:23:13 julian Exp $
* \$Id: make_pseudo_driver.sh,v 1.3 1998/10/22 16:12:16 bde Exp $
*/
@ -112,11 +112,11 @@ static sc_p sca[N${UPPER}];
#define CHECKUNIT(RETVAL) \
do { /* the do-while is a safe way to do this grouping */ \
if (unit > N${UPPER}) { \
printf(__FUNCTION__ ":bad unit $d\n", unit); \
printf(__FUNCTION__ ":bad unit %d\n", unit); \
return (RETVAL); \
} \
if (scp == NULL) { \
printf( __FUNCTION__ ": unit $d not attached\n", unit);\
printf( __FUNCTION__ ": unit %d not attached\n", unit);\
return (RETVAL); \
} \
} while (0)