com php-src: The printf modifier for a double is just %f: .gdbinit
| From: | Rasmus Lerdorf | Date: | Mon, 01 Apr 2013 23:27:09 +0000 |
| Subject: | com php-src: The printf modifier for a double is just %f: .gdbinit | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-71824@lists.php.net to get a copy of this message | ||
Commit: 527ac404a124a574321bdcc209fd4f30d05d7144
Author: Rasmus Lerdorf <rasmus@php.net> Mon, 1 Apr 2013 16:27:09 -0700
Parents: 7b07d05917d9ff40a70bd6ecffca840e2458ea86
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=527ac404a124a574321bdcc209fd4f30d05d7144
Log:
The printf modifier for a double is just %f
Changed paths:
M .gdbinit
Diff:
diff --git a/.gdbinit b/.gdbinit
index e7a565d..b14b03d 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -106,7 +106,7 @@ define dump_bt
printf "%ld", $zvalue->value.lval
end
if $type == 2
- printf "%lf", $zvalue->value.dval
+ printf "%f", $zvalue->value.dval
end
if $type == 3
if $zvalue->value.lval
@@ -185,7 +185,7 @@ define ____printzv_contents
printf "long: %ld", $zvalue->value.lval
end
if $type == 2
- printf "double: %lf", $zvalue->value.dval
+ printf "double: %f", $zvalue->value.dval
end
if $type == 3
printf "bool: "