mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-16 06:03:02 -06:00
Update dependencies (#333)
This commit is contained in:
parent
ce22e03f9d
commit
182b4eea73
848 changed files with 377869 additions and 107280 deletions
6
vendor/modernc.org/libc/printf.go
generated
vendored
6
vendor/modernc.org/libc/printf.go
generated
vendored
|
|
@ -36,6 +36,8 @@ const (
|
|||
// the output stream; and conversion specifications, each of which results in
|
||||
// fetching zero or more subsequent arguments.
|
||||
func printf(format, args uintptr) []byte {
|
||||
format0 := format
|
||||
args0 := args
|
||||
buf := bytes.NewBuffer(nil)
|
||||
for {
|
||||
switch c := *(*byte)(unsafe.Pointer(format)); c {
|
||||
|
|
@ -43,7 +45,7 @@ func printf(format, args uintptr) []byte {
|
|||
format = printfConversion(buf, format, &args)
|
||||
case 0:
|
||||
if dmesgs {
|
||||
dmesg("%v: %q", origin(1), buf.Bytes())
|
||||
dmesg("%v: %q, %#x -> %q", origin(1), GoString(format0), args0, buf.Bytes())
|
||||
}
|
||||
return buf.Bytes()
|
||||
default:
|
||||
|
|
@ -385,7 +387,7 @@ more:
|
|||
switch {
|
||||
case hasPrecision:
|
||||
f = fmt.Sprintf("%s.%ds", spec, prec)
|
||||
str = fmt.Sprintf(f, GoBytes(arg, prec))
|
||||
str = fmt.Sprintf(f, GoString(arg))
|
||||
default:
|
||||
f = spec + "s"
|
||||
str = fmt.Sprintf(f, GoString(arg))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue