summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.printf/string2.stp
blob: 4d8e354b1bbd9602af9754b749c801f2638271a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
probe begin 
{
	# 50 chars
	s = "12345678901234567890123456789012345678901234567890"
	# 100 chars
	t = s.s
	printf("s is <%s>\n", s);
	printf("t is <%s>\n", t);
	for (i = 0; i < 100; i++)
		printf("%2d: %s\n", i, t);		
	exit()
}