summaryrefslogtreecommitdiff
path: root/dbug/dbug.c
diff options
context:
space:
mode:
authordlenev@brandersnatch.localdomain <>2004-05-27 17:54:40 +0400
committerdlenev@brandersnatch.localdomain <>2004-05-27 17:54:40 +0400
commit03b705ff4408f011eebdadffeb249e9ef533c3ea (patch)
tree0a3ac45d591f6d81591a9b4ec19f2d45e2c29570 /dbug/dbug.c
parentfc85c80b88c0717684184f22a91f8b027a8f8559 (diff)
downloadmariadb-git-03b705ff4408f011eebdadffeb249e9ef533c3ea.tar.gz
Made my_snprintf() behavior snprintf() compatible when printing %x arguments (it should
produce hex digits in lower case). (fixed version) Replaced _dig_vec array with two _dig_vec_upper/_dig_vec_lower arrays. Added extra argument to int2str function which controls case of digits you get. Replaced lot of invocations of int2str for decimal radix with more optimized int10_to_str() function. Removed unused my_itoa/my_ltoa functions.
Diffstat (limited to 'dbug/dbug.c')
-rw-r--r--dbug/dbug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbug/dbug.c b/dbug/dbug.c
index 4e4dd87d0a3..1796d883c5e 100644
--- a/dbug/dbug.c
+++ b/dbug/dbug.c
@@ -985,8 +985,8 @@ uint length)
fputc('\n',_db_fp_);
pos=3;
}
- fputc(_dig_vec[((tmp >> 4) & 15)], _db_fp_);
- fputc(_dig_vec[tmp & 15], _db_fp_);
+ fputc(_dig_vec_upper[((tmp >> 4) & 15)], _db_fp_);
+ fputc(_dig_vec_upper[tmp & 15], _db_fp_);
fputc(' ',_db_fp_);
}
(void) fputc('\n',_db_fp_);