Im Gegensatz zu printf muss die Format-Zeichenkette für printa nicht alle Tupelelemente enthalten.
Unlike printf, the format string you use for printa need not include all elements of the tuple.
Das Flag kann mit jeder geeigneten Formatumwandlungskennung kombiniert werden und darf in einer Format-Zeichenkette mehrmals auftreten. Das bedeutet, dass das Tupelergebnis an jeder Stelle und mehrmals in der Ausgabe auftreten kann.
The flag can be combined with any appropriate format conversion specifier, and may appear more than once in a format string so that your tuple result can appear anywhere in the output and can appear more than once.
Bei Verwendung der zweiten Form erstellt der Befehl dtrace 1M ebenfalls eine vollständige Momentaufnahme der Aggregatdaten und generiert eine Ausgabe gemäß den in der Format-Zeichenkette angegebenen Umwandlungen. Dabei gelten die folgenden Regeln
If the second form of the function is used, the dtrace 1M command takes a consistent snapshot of the aggregation data and produces output according to the conversions specified in the format string, according to the following rules
Anschließend werden die Argumente für die Ausgabe durch dtrace 1M gemäß der angegebenen Format-Zeichenkette formatiert.
The arguments are later formatted for output by dtrace 1M according to the specified format string.
Falls ein benutzerdefiniertes Namensschema aktiviert ist, dann wird die Dateiverwaltung Dateien dieser Format-Zeichenkette entsprechend umbenennen.
If the custom filename scheme is enabled, then Organize files will rename files according to this format string.
Wenn ein einzelnes Textelement ausgewählt wird, wird das Dialogfenster Kennung editieren auf Blatt (Edit Label on Sheet) geöffnet, in dem Sie den gewünschten Textstil und die Format-Zeichenkette festlegen können.
When a single text element is selected, the Edit Label on Sheet dialog box opens to allow definition of text style and format string.
Die Format-Zeichenkette für die Dateiverwaltung, falls ein benutzerdefiniertes Namensschema verwendet wird.
Format string for Organize files, if a custom naming scheme is used.
Ändern Sie z. B. die Format-Zeichenkette der printf-Funktion.
For example, change the format string of the printf function.
Die Syntax für die Format-Zeichenkette bei maßgeschneiderten Schlüsselworten unterstützt die folgenden Format-Codes
The format string syntax used for custom keywords supports the following format codes
und dann einer Prüfpunktklausel die D-Anweisung printa(Format-Zeichenkette , @a) hinzufügen, erstellt dtrace eine Momentaufnahme der Aggregatdaten und erzeugt die Ausgabe so, als hätten wir die folgenden Anweisungen eingegeben
and then add the D statement printa(format-string, @a) to a probe clause, dtrace will snapshot the aggregation data and produce output as if you had entered the statements
Sie können deshalb beliebige Tupelschlüssel aus der printa -Ausgabe ausschließen, indem Sie diese in der Aggregatdeklaration an das Ende des Tupels verschieben und in der printa -Format-Zeichenkette keine Umwandlungskennungen für sie angeben.
Therefore, you can omit any tuple keys from your printa output by changing your aggregation declaration to move the keys you want to omit to the end of the tuple and then omit corresponding conversion specifiers for them in the printa format string.
Mit Sortiere nach Tag-Feld ist es möglich, eine Format-Zeichenkette mit Tag-Werten für die Sortierung zu verwenden.
With Sort by tag field, it is possible to sort by a format string with values from tag fields.
Florian Zumbiehl berichtete von einer Verwundbarkeit in pam-pgsql, bei der der Benutzername, der für die Authentifizierung verwendet wird, als Format-Zeichenkette verwendet wird, wenn eine Log-Nachricht erstellt wird.
Florian Zumbiehl reported a vulnerability in pam-pgsql whereby the username to be used for authentication is used as a format string when writing a log message.