1
0
mirror of https://github.com/golang/go synced 2024-11-22 01:54:42 -07:00

change print print buffer size

to go with the full path names

R=rsc
CC=golang-dev
https://golang.org/cl/195079
This commit is contained in:
Ken Thompson 2010-01-27 15:37:46 -08:00
parent a186b77b03
commit 424f9ca6ab
7 changed files with 19 additions and 19 deletions

View File

@ -213,7 +213,7 @@ char* strcond[16] =
int int
Cconv(Fmt *fp) Cconv(Fmt *fp)
{ {
char s[20]; char s[STRINGSZ];
int c; int c;
c = va_arg(fp->args, int); c = va_arg(fp->args, int);
@ -233,7 +233,7 @@ int
Yconv(Fmt *fp) Yconv(Fmt *fp)
{ {
int i, c; int i, c;
char str[100], *p, *a; char str[STRINGSZ], *p, *a;
a = va_arg(fp->args, char*); a = va_arg(fp->args, char*);
p = str; p = str;
@ -278,7 +278,7 @@ int
Rconv(Fmt *fp) Rconv(Fmt *fp)
{ {
int r; int r;
char str[30]; char str[STRINGSZ];
r = va_arg(fp->args, int); r = va_arg(fp->args, int);
snprint(str, sizeof(str), "R%d", r); snprint(str, sizeof(str), "R%d", r);

View File

@ -111,7 +111,7 @@ Aconv(Fmt *fp)
int int
Dconv(Fmt *fp) Dconv(Fmt *fp)
{ {
char str[40], s[20]; char str[STRINGSZ], s[STRINGSZ];
Adr *a; Adr *a;
int i; int i;
@ -337,7 +337,7 @@ char* regstr[] =
int int
Rconv(Fmt *fp) Rconv(Fmt *fp)
{ {
char str[20]; char str[STRINGSZ];
int r; int r;
r = va_arg(fp->args, int); r = va_arg(fp->args, int);
@ -353,7 +353,7 @@ int
Sconv(Fmt *fp) Sconv(Fmt *fp)
{ {
int i, c; int i, c;
char str[100], *p, *a; char str[STRINGSZ], *p, *a;
a = va_arg(fp->args, char*); a = va_arg(fp->args, char*);
p = str; p = str;

View File

@ -73,7 +73,7 @@ Pconv(Fmt *fp)
int int
Dconv(Fmt *fp) Dconv(Fmt *fp)
{ {
char str[100], s[100]; char str[STRINGSZ], s[STRINGSZ];
Addr *a; Addr *a;
int i; int i;
uint32 d1, d2; uint32 d1, d2;
@ -313,7 +313,7 @@ int
Yconv(Fmt *fp) Yconv(Fmt *fp)
{ {
int i, c; int i, c;
char str[100], *p, *a; char str[STRINGSZ], *p, *a;
a = va_arg(fp->args, char*); a = va_arg(fp->args, char*);
p = str; p = str;

View File

@ -96,7 +96,7 @@ Aconv(Fmt *fp)
int int
Dconv(Fmt *fp) Dconv(Fmt *fp)
{ {
char str[40], s[20]; char str[STRINGSZ], s[STRINGSZ];
Adr *a; Adr *a;
int i; int i;
@ -345,7 +345,7 @@ char* regstr[] =
int int
Rconv(Fmt *fp) Rconv(Fmt *fp)
{ {
char str[20]; char str[STRINGSZ];
int r; int r;
r = va_arg(fp->args, int); r = va_arg(fp->args, int);
@ -361,7 +361,7 @@ int
Sconv(Fmt *fp) Sconv(Fmt *fp)
{ {
int i, c; int i, c;
char str[100], *p, *a; char str[STRINGSZ], *p, *a;
a = va_arg(fp->args, char*); a = va_arg(fp->args, char*);
p = str; p = str;

View File

@ -100,7 +100,7 @@ Aconv(Fmt *fp)
int int
Dconv(Fmt *fp) Dconv(Fmt *fp)
{ {
char str[40], s[20]; char str[STRINGSZ], s[STRINGSZ];
Adr *a; Adr *a;
int i; int i;
@ -258,7 +258,7 @@ char* regstr[] =
int int
Rconv(Fmt *fp) Rconv(Fmt *fp)
{ {
char str[20]; char str[STRINGSZ];
int r; int r;
r = va_arg(fp->args, int); r = va_arg(fp->args, int);
@ -274,7 +274,7 @@ int
Sconv(Fmt *fp) Sconv(Fmt *fp)
{ {
int i, c; int i, c;
char str[100], *p, *a; char str[STRINGSZ], *p, *a;
a = va_arg(fp->args, char*); a = va_arg(fp->args, char*);
p = str; p = str;

View File

@ -73,7 +73,7 @@ Pconv(Fmt *fp)
int int
Dconv(Fmt *fp) Dconv(Fmt *fp)
{ {
char str[100], s[100]; char str[STRINGSZ], s[STRINGSZ];
Addr *a; Addr *a;
int i; int i;
uint32 d1, d2; uint32 d1, d2;
@ -256,7 +256,7 @@ int
Yconv(Fmt *fp) Yconv(Fmt *fp)
{ {
int i, c; int i, c;
char str[100], *p, *a; char str[STRINGSZ], *p, *a;
a = va_arg(fp->args, char*); a = va_arg(fp->args, char*);
p = str; p = str;

View File

@ -94,7 +94,7 @@ xsymname(Sym *s)
int int
Dconv(Fmt *fp) Dconv(Fmt *fp)
{ {
char str[200], s[200]; char str[STRINGSZ], s[STRINGSZ];
Adr *a; Adr *a;
int i; int i;
@ -259,7 +259,7 @@ char* regstr[] =
int int
Rconv(Fmt *fp) Rconv(Fmt *fp)
{ {
char str[20]; char str[STRINGSZ];
int r; int r;
r = va_arg(fp->args, int); r = va_arg(fp->args, int);
@ -275,7 +275,7 @@ int
Sconv(Fmt *fp) Sconv(Fmt *fp)
{ {
int i, c; int i, c;
char str[100], *p, *a; char str[STRINGSZ], *p, *a;
a = va_arg(fp->args, char*); a = va_arg(fp->args, char*);
p = str; p = str;