summaryrefslogtreecommitdiffstats
path: root/NEWS
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-02-27 12:54:34 -0500
committerFrank Ch. Eigler <fche@elastic.org>2008-02-27 12:54:34 -0500
commited1f47c32969a60eb074dc246c79ccda456ebf58 (patch)
tree65f8bc63b516fe525af1409fad83f44235d9e675 /NEWS
parent781c25855e35a7b77e5794bd027ca0cf41e4a3a4 (diff)
parenta2dc47ddef0dbed1b0dc912c876f5f57f97c1ede (diff)
downloadsystemtap-steved-ed1f47c32969a60eb074dc246c79ccda456ebf58.tar.gz
systemtap-steved-ed1f47c32969a60eb074dc246c79ccda456ebf58.tar.xz
systemtap-steved-ed1f47c32969a60eb074dc246c79ccda456ebf58.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS29
1 files changed, 29 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index df7e27b4..cd9c72db 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,34 @@
* What's new in version 0.6 / 0.6.1
+- There is a new format specifier, %m, for the printf family of
+ functions. It functions like %s, except that it does not stop when
+ a nul ('\0') byte is encountered. The number of bytes output is
+ determined by the precision specifier. The default precision is 1.
+ For example:
+
+ printf ("%m", "My String") // prints one character: M
+ printf ("%.5", myString) // prints 5 bytes beginning at the start
+ // of myString
+
+- The %b format specifier for the printf family of functions has been enhanced
+ as follows:
+
+ 1) When the width and precision are both unspecified, the default is %8.8b.
+ 2) When only one of the width or precision is specified, the other defaults
+ to the same value. For example, %4b == %.4b == %4.4b
+ 3) Nul ('\0') bytes are used for field width padding. For example,
+
+ printf ("%b", 0x1111deadbeef2222) // prints all eight bytes
+ printf ("%4.2b", 0xdeadbeef) // prints \0\0\xbe\xef
+
+- Dynamic width and precision are now supported for all printf family format
+ specifiers. For example:
+
+ four = 4
+ two = 2
+ printf ("%*.*b", four, two, 0xdeadbbeef) // prints \0\0\xbe\xef
+ printf ("%*d", four, two) // prints <space><space><space>2
+
- Preprocessor conditional expressions can now include wildcard style
matches on kernel versions.
%( kernel_vr != "*xen" %? foo %: bar %)