Revert r337440: the log message is wrong.
This commit is contained in:
parent
c820acbf0a
commit
94e460157d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=337457
@ -1,7 +1,6 @@
|
|||||||
/*-
|
/*-
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*
|
*
|
||||||
* Copyright 2018 Staysail Systems, Inc. <info@staysail.tech>
|
|
||||||
* Copyright 2014 Garrett D'Amore <garrett@damore.org>
|
* Copyright 2014 Garrett D'Amore <garrett@damore.org>
|
||||||
* Copyright 2010 Nexenta Systems, Inc. All rights reserved.
|
* Copyright 2010 Nexenta Systems, Inc. All rights reserved.
|
||||||
* Copyright (c) 1989, 1993
|
* Copyright (c) 1989, 1993
|
||||||
@ -376,19 +375,16 @@ printf_doformat(char *fmt, int *rval)
|
|||||||
char *p;
|
char *p;
|
||||||
int getout;
|
int getout;
|
||||||
|
|
||||||
/* Convert "b" to "s" for output. */
|
p = strdup(getstr());
|
||||||
start[strlen(start) - 1] = 's';
|
if (p == NULL) {
|
||||||
if ((p = strdup(getstr())) == NULL) {
|
|
||||||
warnx("%s", strerror(ENOMEM));
|
warnx("%s", strerror(ENOMEM));
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
getout = escape(p, 0, &len);
|
getout = escape(p, 0, &len);
|
||||||
PF(start, p);
|
fputs(p, stdout);
|
||||||
/* Restore format for next loop. */
|
|
||||||
|
|
||||||
free(p);
|
free(p);
|
||||||
if (getout)
|
if (getout)
|
||||||
exit(*rval);
|
return (end_fmt);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'c': {
|
case 'c': {
|
||||||
|
Loading…
Reference in New Issue
Block a user