Commit 507f986
test_printf: Append strings more efficiently
Use scnprintf instead of snprintf + strlen.
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Reviewed-by: Yafang Shao <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]1 parent 5b358b0 commit 507f986
1 file changed
+7
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
617 | | - | |
618 | | - | |
| 617 | + | |
619 | 618 | | |
620 | 619 | | |
621 | 620 | | |
622 | 621 | | |
623 | 622 | | |
624 | 623 | | |
625 | 624 | | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
| 625 | + | |
| 626 | + | |
630 | 627 | | |
631 | 628 | | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
637 | 633 | | |
638 | 634 | | |
639 | 635 | | |
| |||
0 commit comments