Chapter 6 Output Formatting

Table of Contents

6.1 printf
6.1.1 Conversion Specifications
6.1.2 Flag Specifiers
6.1.3 Width and Precision Specifiers
6.1.4 Size prefixes
6.1.5 Conversion Formats
6.2 printa
6.3 trace Default Format

DTrace provides built-in formatting functions printf and printa that you can use from your D programs to format output. The D compiler provides features not found in the C library's printf() routine, so you should read this chapter even if you are already familiar with printf. This chapter also discusses the formatting behavior of the trace function and the default output format used by dtrace to display aggregations.