PageRenderTime 994ms queryTime 105ms sortTime 410ms getByIdsTime 139ms findMatchingLines 44ms

100+ results results for 'printf' (994 ms)

Not the results you expected?
irq.c https://github.com/dmitriy103/bravo_kernel-2.6.35.git | C | 366 lines
                    
51
                    
52	seq_printf(p, "%*s: ", prec, "NMI");
                    
53	for_each_online_cpu(j)
                    
53	for_each_online_cpu(j)
                    
54		seq_printf(p, "%10u ", irq_stats(j)->__nmi_count);
                    
55	seq_printf(p, "  Non-maskable interrupts\n");
                    
56#ifdef CONFIG_X86_LOCAL_APIC
                    
57	seq_printf(p, "%*s: ", prec, "LOC");
                    
58	for_each_online_cpu(j)
                    
58	for_each_online_cpu(j)
                    
59		seq_printf(p, "%10u ", irq_stats(j)->apic_timer_irqs);
                    
60	seq_printf(p, "  Local timer interrupts\n");
                    
61
                    
62	seq_printf(p, "%*s: ", prec, "SPU");
                    
63	for_each_online_cpu(j)
                    
                
sysinfo.c https://github.com/mstsirkin/kvm.git | C | 470 lines
                    
43	EBCASC(info->model_temp_cap, sizeof(info->model_temp_cap));
                    
44	len += sprintf(page + len, "Manufacturer:         %-16.16s\n",
                    
45		       info->manufacturer);
                    
45		       info->manufacturer);
                    
46	len += sprintf(page + len, "Type:                 %-4.4s\n",
                    
47		       info->type);
                    
55		 */
                    
56		len += sprintf(page + len,
                    
57			       "Model:                %-16.16s %-16.16s\n",
                    
59	else
                    
60		len += sprintf(page + len, "Model:                %-16.16s\n",
                    
61			       info->model_capacity);
                    
61			       info->model_capacity);
                    
62	len += sprintf(page + len, "Sequence Code:        %-16.16s\n",
                    
63		       info->sequence);
                    
                
ivshmem-server.c https://github.com/mstsirkin/qemu.git | C | 457 lines
                    
20        if ((server)->verbose) {         \
                    
21            printf(fmt, ## __VA_ARGS__); \
                    
22        }                                \
                    
265
                    
266    ret = snprintf(server->unix_sock_path, sizeof(server->unix_sock_path),
                    
267                   "%s", unix_sock_path);
                    
271    }
                    
272    ret = snprintf(server->shm_path, sizeof(server->shm_path),
                    
273                   "%s", shm_path);
                    
300    } else {
                    
301        gchar *filename = g_strdup_printf("%s/ivshmem.XXXXXX", server->shm_path);
                    
302        IVSHMEM_SERVER_DEBUG(server, "Using file-backed shared memory: %s\n",
                    
309    if (shm_fd < 0) {
                    
310        fprintf(stderr, "cannot open shm file %s: %s\n", server->shm_path,
                    
311                strerror(errno));
                    
                
multirom_ui_landscape.c https://gitlab.com/adam.lukaitis/multirom | C | 284 lines
                    
117
                    
118    snprintf(buff, sizeof(buff), ":/miri_%dx%d.png", (int)MIRI_W, (int)MIRI_W);
                    
119    fb_add_png_img_lvl(110, 10*DPI_MUL, HEADER_HEIGHT/2 - MIRI_W/2, MIRI_W, MIRI_W, buff);
                    
                
nf_conntrack_proto_udplite.c https://bitbucket.org/codefirex/kernel_samsung_jf.git | C | 323 lines
                    
65{
                    
66	return seq_printf(s, "sport=%hu dport=%hu ",
                    
67			  ntohs(tuple->src.u.udp.port),
                    
                
tftp.c https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C | 431 lines
                    
108
                    
109  n = snprintf(buffer, sizeof(buffer), "%s/%s",
                    
110	       tftp_prefix, spt->filename);
                    
151    tp->tp_op = htons(TFTP_OACK);
                    
152    n += snprintf((char *)tp->x.tp_buf + n, sizeof(tp->x.tp_buf) - n, "%s",
                    
153                  key) + 1;
                    
153                  key) + 1;
                    
154    n += snprintf((char *)tp->x.tp_buf + n, sizeof(tp->x.tp_buf) - n, "%u",
                    
155                  value) + 1;
                    
382
                    
383	      len = snprintf(buffer, sizeof(buffer), "%s/%s",
                    
384			     tftp_prefix, spt->filename);
                    
                
pl110.c https://github.com/mstsirkin/qemu.git | C | 566 lines
                    
180    default:
                    
181        fprintf(stderr, "pl110: Bad color depth\n");
                    
182        exit(1);
                    
                
main_rtems.c https://bitbucket.org/bohlooli/csipsimple2.git | C | 326 lines
                    
96    pj_strerror(status, err, sizeof(err));
                    
97    printf("%s: %s [%d]\n", title, err, status);
                    
98}
                    
190  
                    
191    printf("pjlib_test_main thread started..\n");
                    
192
                    
260    if (sock < 0) {
                    
261	printf("socket() error\n");
                    
262	goto end;
                    
271    if (rc != 0) {
                    
272	printf("bind() error %d\n", rc);
                    
273	close(sock);
                    
                
fpga-bridge.c https://github.com/gby/linux.git | C | 388 lines
                    
242
                    
243	return sprintf(buf, "%s\n", bridge->name);
                    
244}
                    
254
                    
255	return sprintf(buf, "%s\n", enable ? "enabled" : "disabled");
                    
256}
                    
                
confbench.c https://bitbucket.org/bohlooli/csipsimple2.git | C | 347 lines
                    
114    for (i=DURATION; i>0; --i) {
                    
115	printf("\r%d ", i); fflush(stdout);
                    
116	pj_thread_sleep(1000);
                    
128
                    
129    printf("CPU usage=%6.4f%%\n", pct); fflush(stdout);
                    
130}
                    
270
                    
271    printf("Resampling is %s\n", (HAS_RESAMPLE?"active":"disabled"));
                    
272
                    
273    /* Create Null ports */
                    
274    printf("Creating %d null ports..\n", NULL_COUNT);
                    
275    for (i=0; i<NULL_COUNT; ++i) {
                    
283    /* Create sine ports. */
                    
284    printf("Creating %d sine generator ports..\n", SINE_COUNT);
                    
285    for (i=0; i<SINE_COUNT; ++i) {
                    
                
tramp-hppa.c https://github.com/hollow87/mono.git | C | 434 lines
                    
111	} else {
                    
112		printf("Can't patch callsite!\n");
                    
113	}
                    
                
lm92.c https://bitbucket.org/codefirex/kernel_samsung_jf.git | C | 449 lines
                    
148	struct lm92_data *data = lm92_update_device(dev); \
                    
149	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->value)); \
                    
150}
                    
181	struct lm92_data *data = lm92_update_device(dev);
                    
182	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp1_crit)
                    
183		       - TEMP_FROM_REG(data->temp1_hyst));
                    
188	struct lm92_data *data = lm92_update_device(dev);
                    
189	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp1_max)
                    
190		       - TEMP_FROM_REG(data->temp1_hyst));
                    
195	struct lm92_data *data = lm92_update_device(dev);
                    
196	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp1_min)
                    
197		       + TEMP_FROM_REG(data->temp1_hyst));
                    
224	struct lm92_data *data = lm92_update_device(dev);
                    
225	return sprintf(buf, "%d\n", ALARMS_FROM_REG(data->temp1_input));
                    
226}
                    
                
kcpuid.c https://github.com/kvaneesh/linux.git | C | 657 lines
                    
123		if (leaf->sub == 0)
                    
124			printf("0x%08x: subleafs:\n", leaf->index);
                    
125
                    
125
                    
126		printf(" %2d: EAX=0x%08x, EBX=0x%08x, ECX=0x%08x, EDX=0x%08x\n",
                    
127			leaf->sub, leaf->eax, leaf->ebx, leaf->ecx, leaf->edx);
                    
128	} else {
                    
129		printf("0x%08x: EAX=0x%08x, EBX=0x%08x, ECX=0x%08x, EDX=0x%08x\n",
                    
130			leaf->index, leaf->eax, leaf->ebx, leaf->ecx, leaf->edx);
                    
182
                    
183	printf("%s Leafs :\n", range->is_ext ? "Extended" : "Basic");
                    
184	printf("================\n");
                    
387err_exit:
                    
388	printf("Warning: wrong line format:\n");
                    
389	printf("\tline[%d]: %s\n", flines, line);
                    
                
dev.c https://github.com/kvaneesh/linux.git | C | 548 lines
                    
313
                    
314	devname = kasprintf(GFP_KERNEL, "/dev/disk/by-id/wwn-0x%*phN",
                    
315				v->scsi.designator_len, v->scsi.designator);
                    
338
                    
339	devname = kasprintf(GFP_KERNEL,
                    
340			"/dev/disk/by-id/dm-uuid-mpath-%d%*phN",
                    
                
dasd_proc.c https://bitbucket.org/zozo123/boeffla-kernel-jb-u6-s3.git | C | 341 lines
                    
73	/* Print device number. */
                    
74	seq_printf(m, "%s", dev_name(&device->cdev->dev));
                    
75	/* Print discipline string. */
                    
76	if (device->discipline != NULL)
                    
77		seq_printf(m, "(%s)", device->discipline->name);
                    
78	else
                    
78	else
                    
79		seq_printf(m, "(none)");
                    
80	/* Print kdev. */
                    
81	if (block->gdp)
                    
82		seq_printf(m, " at (%3d:%6d)",
                    
83			   MAJOR(disk_devt(block->gdp)),
                    
85	else
                    
86		seq_printf(m, "  at (???:??????)");
                    
87	/* Print device name. */
                    
                
dma.c https://github.com/darth-llamah/kernel.git | C | 288 lines
                    
40
                    
41#define MSM_DMOV_DPRINTF(mask, format, args...) \
                    
42	do { \
                    
46#define PRINT_ERROR(format, args...) \
                    
47	MSM_DMOV_DPRINTF(MSM_DMOV_PRINT_ERRORS, format, args);
                    
48#define PRINT_IO(format, args...) \
                    
48#define PRINT_IO(format, args...) \
                    
49	MSM_DMOV_DPRINTF(MSM_DMOV_PRINT_IO, format, args);
                    
50#define PRINT_FLOW(format, args...) \
                    
50#define PRINT_FLOW(format, args...) \
                    
51	MSM_DMOV_DPRINTF(MSM_DMOV_PRINT_FLOW, format, args);
                    
52
                    
                
pvr_debug.c https://github.com/galaxyishere/samsung-kernel-latona.git | C | 421 lines
                    
49						 const IMG_CHAR* pszFormat, va_list VArgs)
                    
50						 IMG_FORMAT_PRINTF(3, 0);
                    
51
                    
58						const IMG_CHAR *pszFormat, ...)
                    
59						IMG_FORMAT_PRINTF(3, 4);
                    
60
                    
128
                    
129	i32Len = vsnprintf(&pszBuf[ui32Used], ui32Space, pszFormat, VArgs);
                    
130	pszBuf[ui32BufSiz - 1] = 0;
                    
140
                    
141IMG_VOID PVRSRVReleasePrintf(const IMG_CHAR *pszFormat, ...)
                    
142{
                    
172{
                    
173	PVRSRVDebugPrintf(DBGPRIV_FATAL, pszFile, uLine, "Debug assertion failed!");
                    
174	BUG();
                    
                
cmd.c https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C | 748 lines
                    
93	{
                    
94		Con_Printf ("Cbuf_AddText: overflow\n");
                    
95		return;
                    
282	{
                    
283		Con_Printf ("exec <filename> : execute a script file\n");
                    
284		return;
                    
291	{
                    
292		Con_Printf ("couldn't exec %s\n",Cmd_Argv(1));
                    
293		return;
                    
295	if (!Cvar_Command () && (cl_warncmd.value || developer.value))
                    
296		Con_Printf ("execing %s\n",Cmd_Argv(1));
                    
297	
                    
314	for (i=1 ; i<Cmd_Argc() ; i++)
                    
315		Con_Printf ("%s ",Cmd_Argv(i));
                    
316	Con_Printf ("\n");
                    
                
ts5500.c https://gitlab.com/CadeLaRen/linux | C | 347 lines
                    
160
                    
161	return sprintf(buf, "%s\n", sbc->name);
                    
162}
                    
169
                    
170	return sprintf(buf, "0x%.2x\n", sbc->id);
                    
171}
                    
178
                    
179	return sprintf(buf, "0x%.2x\n", sbc->jumpers >> 1);
                    
180}
                    
188									\
                    
189		return sprintf(buf, "%d\n", sbc->_field);		\
                    
190	}								\
                    
                
test_arm.c https://gitlab.com/pranith/capstone | C | 298 lines
                    
24
                    
25	printf("%s", comment);
                    
26	for (c = str; c < str + len; c++) {
                    
26	for (c = str; c < str + len; c++) {
                    
27		printf("0x%02x ", *c & 0xff);
                    
28	}
                    
29
                    
30	printf("\n");
                    
31}
                    
44	if (arm->op_count)
                    
45		printf("\top_count: %u\n", arm->op_count);
                    
46
                    
52			case ARM_OP_REG:
                    
53				printf("\t\toperands[%u].type: REG = %s\n", i, cs_reg_name(handle, op->reg));
                    
54				break;
                    
                
friso_lexicon.c https://bitbucket.org/linju_tony/test.git | C | 373 lines
                    
69	if ( lex >= 0 || lex < __FRISO_LEXICON_LENGTH__ ) {
                    
70		//printf("lex=%d, word=%s, syn=%s\n", lex, word, syn);
                    
71		hash_put_mapping( dic[lex], word, new_lex_entry( word, syn, 0, ( char ) strlen(word), ( char ) lex ) );
                    
303				
                    
304				//printf("key=%s, type=%d\n", __key__, lex_t );
                    
305				while ( ( __line__ = file_get_line( __chars__, __stream ) ) != NULL ) {
                    
                
openal-info.c https://github.com/AerialX/openal-soft-android.git | C | 304 lines
                    
53    {
                    
54        fprintf(stdout, "\n%s!!! none !!!\n", indent);
                    
55        return;
                    
71        {
                    
72            fprintf(stdout, "\n%s", indent);
                    
73            col = strlen(indent);
                    
96    if(!list || *list == '\0')
                    
97        printf("    !!! none !!!\n");
                    
98    else do {
                    
98    else do {
                    
99        printf("    %s\n", list);
                    
100        list += strlen(list) + 1;
                    
108    if(err != AL_NO_ERROR)
                    
109        printf("OpenAL Error: %s (0x%x), @ %d\n", alGetString(err), err, linenum);
                    
110    return err;
                    
                
carray.c https://gitlab.com/PedroFalcato/sortix | C | 370 lines
                    
194		{
                    
195			if ( asprintf(&new_guard, "%s_H", argv[1]) < 0 )
                    
196				err(1, "asprintf");
                    
266	{
                    
267		printf("#ifndef %s\n", guard);
                    
268		printf("#define %s\n", guard);
                    
268		printf("#define %s\n", guard);
                    
269		printf("\n");
                    
270	}
                    
273	{
                    
274		printf("%s\n", includes);
                    
275		printf("\n");
                    
281		{
                    
282			printf("#if defined(__cplusplus)\n");
                    
283			printf("extern \"C\" {\n");
                    
                
en_ethtool.c https://bitbucket.org/GT-P6200/samsung-kernel-p6200.git | C | 460 lines
                    
62
                    
63	sprintf(drvinfo->driver, DRV_NAME " (%s)", mdev->dev->board_id);
                    
64	strncpy(drvinfo->version, DRV_VERSION " (" DRV_RELDATE ")", 32);
                    
64	strncpy(drvinfo->version, DRV_VERSION " (" DRV_RELDATE ")", 32);
                    
65	sprintf(drvinfo->fw_version, "%d.%d.%d",
                    
66		(u16) (mdev->dev->caps.fw_ver >> 32),
                    
200	for (i = 0; i < priv->tx_ring_num; i++) {
                    
201		sprintf(data + (index++) * ETH_GSTRING_LEN,
                    
202			"tx%d_packets", i);
                    
202			"tx%d_packets", i);
                    
203		sprintf(data + (index++) * ETH_GSTRING_LEN,
                    
204			"tx%d_bytes", i);
                    
206	for (i = 0; i < priv->rx_ring_num; i++) {
                    
207		sprintf(data + (index++) * ETH_GSTRING_LEN,
                    
208			"rx%d_packets", i);
                    
                
ipx_proc.c https://gitlab.com/envieidoc/advancedtomato2 | C | 407 lines
                    
75	i = v;
                    
76	seq_printf(seq, "%08lX   ", (unsigned long int)ntohl(i->if_netnum));
                    
77	seq_printf(seq, "%02X%02X%02X%02X%02X%02X   ",
                    
79			i->if_node[3], i->if_node[4], i->if_node[5]);
                    
80	seq_printf(seq, "%-9s", i == ipx_primary_net ? "Yes" : "No");
                    
81	seq_printf(seq, "%-11s", ipx_device_name(i));
                    
81	seq_printf(seq, "%-11s", ipx_device_name(i));
                    
82	seq_printf(seq, "%-9s", ipx_frame_name(i->if_dlink_type));
                    
83#ifdef IPX_REFCNT_DEBUG
                    
83#ifdef IPX_REFCNT_DEBUG
                    
84	seq_printf(seq, "%6d", atomic_read(&i->refcnt));
                    
85#endif
                    
153	rt = v;
                    
154	seq_printf(seq, "%08lX   ", (unsigned long int)ntohl(rt->ir_net));
                    
155	if (rt->ir_routed)
                    
                
sig.c https://gitlab.com/envieidoc/advancedtomato2 | C | 386 lines
                    
260
                    
261  status_printf (so, "OpenVPN STATISTICS");
                    
262  status_printf (so, "Updated,%s", time_string (0, 0, false, &gc));
                    
262  status_printf (so, "Updated,%s", time_string (0, 0, false, &gc));
                    
263  status_printf (so, "TUN/TAP read bytes," counter_format, c->c2.tun_read_bytes);
                    
264  status_printf (so, "TUN/TAP write bytes," counter_format, c->c2.tun_write_bytes);
                    
264  status_printf (so, "TUN/TAP write bytes," counter_format, c->c2.tun_write_bytes);
                    
265  status_printf (so, "TCP/UDP read bytes," counter_format, c->c2.link_read_bytes);
                    
266  status_printf (so, "TCP/UDP write bytes," counter_format, c->c2.link_write_bytes);
                    
266  status_printf (so, "TCP/UDP write bytes," counter_format, c->c2.link_write_bytes);
                    
267  status_printf (so, "Auth read bytes," counter_format, c->c2.link_read_bytes_auth);
                    
268#ifdef ENABLE_LZO
                    
272#ifdef PACKET_TRUNCATION_CHECK
                    
273  status_printf (so, "TUN read truncations," counter_format, c->c2.n_trunc_tun_read);
                    
274  status_printf (so, "TUN write truncations," counter_format, c->c2.n_trunc_tun_write);
                    
                
mdopen.c https://gitlab.com/envieidoc/advancedtomato2 | C | 342 lines
                    
75		struct stat stb2;
                    
76		snprintf(name, nlen, "%s%s%d", dev, dig?"p":"", i);
                    
77		if (stat(name, &stb2)==0) {
                    
133		if (stat(dev, &stb)==0 && ! S_ISBLK(stb.st_mode)) {
                    
134			fprintf(stderr, Name ": %s is not a block device.\n",
                    
135				dev);
                    
144			if (!std && !stb.st_mode) {
                    
145				fprintf(stderr, Name
                    
146			": %s does not exist and is not a 'standard' name "
                    
152			if (std > 0) {
                    
153				fprintf(stderr, Name ": that --auto option "
                    
154				"not compatable with device named %s\n", dev);
                    
159			if (std < 0) {
                    
160				fprintf(stderr, Name ": that --auto option "
                    
161				"not compatable with device named %s\n", dev);
                    
                
opal-flash.c https://github.com/tiwai/sound.git | C | 566 lines
                    
157	if (args_buf->status < VALIDATE_TMP_UPDATE) {
                    
158		len = sprintf(buf, "%d\n", args_buf->status);
                    
159		goto out;
                    
162	/* Result token */
                    
163	len = sprintf(buf, "%d\n", args_buf->result);
                    
164
                    
240
                    
241	rc = sprintf(buf, "%d\n", args_buf->status);
                    
242	/* Set status to default*/
                    
323	struct update_flash_t *const args_buf = &update_flash_data;
                    
324	return sprintf(buf, "%d\n", args_buf->status);
                    
325}
                    
                
xenbus_probe_frontend.c https://github.com/tiwai/sound.git | C | 516 lines
                    
64
                    
65	nodename = kasprintf(GFP_KERNEL, "%s/%s/%s", bus->root, type, name);
                    
66	if (!nodename)
                    
380	memset(&be_watch, 0, sizeof(be_watch));
                    
381	be_watch.node = kasprintf(GFP_NOIO | __GFP_HIGH, "%s/state", be);
                    
382	if (!be_watch.node)
                    
393	case XenbusStateConnected:
                    
394		xenbus_printf(XBT_NIL, fe, "state", "%d", XenbusStateClosing);
                    
395		xenbus_reset_wait_for_backend(be, XenbusStateClosing);
                    
398	case XenbusStateClosing:
                    
399		xenbus_printf(XBT_NIL, fe, "state", "%d", XenbusStateClosed);
                    
400		xenbus_reset_wait_for_backend(be, XenbusStateClosed);
                    
403	case XenbusStateClosed:
                    
404		xenbus_printf(XBT_NIL, fe, "state", "%d", XenbusStateInitialising);
                    
405		xenbus_reset_wait_for_backend(be, XenbusStateInitWait);
                    
                
tpm-sysfs.c https://github.com/tiwai/sound.git | C | 529 lines
                    
57	str +=
                    
58	    sprintf(str,
                    
59		    "Algorithm: %4ph\n"
                    
71	for (i = 0; i < 256; i += 16)
                    
72		str += sprintf(str, "%16ph\n", &out->modulus[i]);
                    
73
                    
106		}
                    
107		str += sprintf(str, "PCR-%02d: ", i);
                    
108		for (j = 0; j < TPM_DIGEST_SIZE; j++)
                    
108		for (j = 0; j < TPM_DIGEST_SIZE; j++)
                    
109			str += sprintf(str, "%02X ", digest[j]);
                    
110		str += sprintf(str, "\n");
                    
131
                    
132	rc = sprintf(buf, "%d\n", !cap.perm_flags.disable);
                    
133out_ops:
                    
                
iommu.c https://github.com/tiwai/sound.git | C | 489 lines
                    
91		container_of(attr, struct amd_iommu_event_desc, attr);
                    
92	return sprintf(buf, "%s\n", event->event);
                    
93}
                    
440
                    
441	snprintf(perf_iommu->name, IOMMU_NAME_SIZE, "amd_iommu_%u", idx);
                    
442
                    
                
tpm-chip.c https://github.com/kvaneesh/linux.git | C | 647 lines
                    
541
                    
542	snprintf(chip->hwrng_name, sizeof(chip->hwrng_name),
                    
543		 "tpm-rng-%d", chip->dev_num);
                    
                
octeon_edac-lmc.c https://gitlab.com/webhaikal/SenseiOneplus3 | C | 353 lines
                    
48		fadr.u64 = cvmx_read_csr(CVMX_LMCX_FADR(mci->mc_idx));
                    
49		snprintf(msg, sizeof(msg),
                    
50			 "DIMM %d rank %d bank %d row %d col %d",
                    
98		}
                    
99		snprintf(msg, sizeof(msg),
                    
100			 "DIMM %d rank %d bank %d row %d col %d",
                    
136	struct octeon_lmc_pvt *pvt = mci->pvt_info;			\
                    
137	return sprintf(data, "%016llu\n", (u64)pvt->reg);		\
                    
138}
                    
189	if (pvt->error_type == 1)
                    
190		return sprintf(data, "single");
                    
191	else if (pvt->error_type == 2)
                    
191	else if (pvt->error_type == 2)
                    
192		return sprintf(data, "double");
                    
193
                    
                
sunxi-mmc-debug.c https://gitlab.com/pine64-android/linux-3.10 | C | 392 lines
                    
61
                    
62	ret = snprintf(buf, PAGE_SIZE, "Usage: \"echo 1 > insert\" to scan card\n");
                    
63	return ret;
                    
168
                    
169	p += sprintf(p, "Dump sdmmc regs:\n");
                    
170	for (i=0; i<0x180; i+=4) {
                    
171		if (!(i&0xf))
                    
172			p += sprintf(p, "\n0x%08llx : ", (u64)(host->reg_base + i));
                    
173		p += sprintf(p, "%08x ", readl(host->reg_base + i));
                    
174	}
                    
175	p += sprintf(p, "\n");
                    
176
                    
177
                    
178	p += sprintf(p, "Dump gpio regs:\n");
                    
179	
                    
                
ieee80211_amrr.c https://github.com/blacklion/GEOM-Events.git | C | 317 lines
                    
115	if (amrr == NULL) {
                    
116		if_printf(vap->iv_ifp, "couldn't alloc ratectl structure\n");
                    
117		return;
                    
142		if (amn == NULL) {
                    
143			if_printf(vap->iv_ifp, "couldn't alloc per-node ratectl "
                    
144			    "structure\n");
                    
                
getether.c https://github.com/blacklion/GEOM-Events.git | C | 389 lines
                    
200
                    
201	snprintf(devname, sizeof(devname), "%s%s", _PATH_DEV, ifname);
                    
202	fd = open(devname, 2);
                    
                
test_write_compress_gzip.c https://github.com/blacklion/GEOM-Events.git | C | 252 lines
                    
74	for (i = 0; i < 100; i++) {
                    
75		sprintf(path, "file%03d", i);
                    
76		archive_entry_copy_pathname(ae, path);
                    
96		for (i = 0; i < 100; i++) {
                    
97			sprintf(path, "file%03d", i);
                    
98			if (!assertEqualInt(ARCHIVE_OK,
                    
126	for (i = 0; i < 100; i++) {
                    
127		sprintf(path, "file%03d", i);
                    
128		assert((ae = archive_entry_new()) != NULL);
                    
157		for (i = 0; i < 100; i++) {
                    
158			sprintf(path, "file%03d", i);
                    
159			if (!assertEqualInt(ARCHIVE_OK,
                    
180	for (i = 0; i < 100; i++) {
                    
181		sprintf(path, "file%03d", i);
                    
182		assert((ae = archive_entry_new()) != NULL);
                    
                
cmdlinepart.c https://github.com/kipill-nn/Kernel-for-Mega.git | C | 376 lines
                    
191	{
                    
192		sprintf(extra_mem, "Partition_%03d", this_part);
                    
193	}
                    
                
adfile.c https://github.com/blacklion/GEOM-Events.git | C | 333 lines
                    
133    {
                    
134        printf ("Couldn't open %s\n", Filename);
                    
135        return (-1);
                    
171
                    
172    AcpiOsPrintf ("Table [%s] written to \"%s\"\n", TableName, Filename);
                    
173}
                    
                
eap_server_pax.c https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C | 564 lines
                    
77
                    
78	wpa_printf(MSG_DEBUG, "EAP-PAX: PAX_STD-1 (sending)");
                    
79
                    
80	if (random_get_bytes(data->rand.r.x, EAP_PAX_RAND_LEN)) {
                    
81		wpa_printf(MSG_ERROR, "EAP-PAX: Failed to get random data");
                    
82		data->state = FAILURE;
                    
89	if (req == NULL) {
                    
90		wpa_printf(MSG_ERROR, "EAP-PAX: Failed to allocate memory "
                    
91			   "request");
                    
124
                    
125	wpa_printf(MSG_DEBUG, "EAP-PAX: PAX_STD-3 (sending)");
                    
126
                    
130	if (req == NULL) {
                    
131		wpa_printf(MSG_ERROR, "EAP-PAX: Failed to allocate memory "
                    
132			   "request");
                    
                
preauth.c https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C | 529 lines
                    
66
                    
67	wpa_printf(MSG_DEBUG, "RX pre-auth from " MACSTR, MAC2STR(src_addr));
                    
68	wpa_hexdump(MSG_MSGDUMP, "RX pre-auth", buf, len);
                    
72	    os_memcmp(sm->preauth_bssid, src_addr, ETH_ALEN) != 0) {
                    
73		wpa_printf(MSG_WARNING, "RSN pre-auth frame received from "
                    
74			   "unexpected source " MACSTR " - dropped",
                    
192	if (sm->l2_preauth == NULL) {
                    
193		wpa_printf(MSG_WARNING, "RSN: Failed to initialize L2 packet "
                    
194			   "processing for pre-authentication");
                    
203		if (sm->l2_preauth_br == NULL) {
                    
204			wpa_printf(MSG_WARNING, "RSN: Failed to initialize L2 "
                    
205				   "packet processing (bridge) for "
                    
212	if (ctx == NULL) {
                    
213		wpa_printf(MSG_WARNING, "Failed to allocate EAPOL context.");
                    
214		return -4;
                    
                
fc8050_spi.c https://bitbucket.org/thenameisnigel/android_kernel_lge_ls840.git | C | 385 lines
                    
111	{
                    
112		PRINTF(0, "fc8050_spi_bulkread fail : %d\n", ret);
                    
113		return BBM_NOK;
                    
135	{
                    
136		PRINTF(0, "fc8050_spi_bulkwrite fail : %d\n", ret);
                    
137		return BBM_NOK;
                    
156	{
                    
157		PRINTF(0, "fc8050_spi_dataread fail : %d\n", ret);
                    
158		return BBM_NOK;
                    
168	
                    
169	PRINTF(0, "fc8050_spi_probe\n");
                    
170
                    
212	{
                    
213		PRINTF(0, "fc8050_spi register fail : %d\n", res);
                    
214		return BBM_NOK;
                    
                
action_execution_order_test5.c https://github.com/frash/frash.git | C | 263 lines
                    
76  {
                    
77      fprintf(stderr, "Usage: %s <mediadir>\n", argv[0]);
                    
78      return 1;
                    
                
common.c https://github.com/hgmeier/xbmc.git | C | 344 lines
                    
166    if (((newhead >> 10) & 0x3) == 0x3) {
                    
167        fprintf(stderr, "Stream error\n");
                    
168        exit(1);
                    
222        if (fr->framesize > MAX_INPUT_FRAMESIZE) {
                    
223            fprintf(stderr, "Frame size too big.\n");
                    
224            fr->framesize = MAX_INPUT_FRAMESIZE;
                    
237    default:
                    
238        fprintf(stderr, "Sorry, layer %d not supported\n", fr->lay);
                    
239        return (0);
                    
253
                    
254    fprintf(stderr, "MPEG %s, Layer: %s, Freq: %ld, mode: %s, modext: %d, BPF : %d\n",
                    
255            fr->mpeg25 ? "2.5" : (fr->lsf ? "2.0" : "1.0"),
                    
257            modes[fr->mode], fr->mode_ext, fr->framesize + 4);
                    
258    fprintf(stderr, "Channels: %d, copyright: %s, original: %s, CRC: %s, emphasis: %d.\n",
                    
259            fr->stereo, fr->copyright ? "Yes" : "No",
                    
                
clk-bpmp.c https://github.com/gby/linux.git | C | 620 lines
                    
364	if (info->flags)
                    
365		seq_buf_printf(&buf, "(");
                    
366
                    
367	if (info->flags & TEGRA_BPMP_CLK_HAS_MUX) {
                    
368		seq_buf_printf(&buf, "%smux", prefix);
                    
369		prefix = ", ";
                    
372	if ((info->flags & TEGRA_BPMP_CLK_HAS_SET_RATE) == 0) {
                    
373		seq_buf_printf(&buf, "%sfixed", prefix);
                    
374		prefix = ", ";
                    
377	if (info->flags & TEGRA_BPMP_CLK_IS_ROOT) {
                    
378		seq_buf_printf(&buf, "%sroot", prefix);
                    
379		prefix = ", ";
                    
382	if (info->flags)
                    
383		seq_buf_printf(&buf, ")");
                    
384
                    
                
cholesky_tag.c https://bitbucket.org/jeromerobert/starpu.git | C | 405 lines
                    
51{
                    
52/*	FPRINTF(stdout, "task 11 k = %d TAG = %llx\n", k, (TAG11(k))); */
                    
53
                    
107	{
                    
108                FPRINTF(stderr, "No worker may execute this task\n");
                    
109                exit(0);
                    
115{
                    
116/*	FPRINTF(stdout, "task 22 k,i,j = %d,%d,%d TAG = %llx\n", k,i,j, TAG22(k,i,j)); */
                    
117
                    
147	{
                    
148                FPRINTF(stderr, "No worker may execute this task\n");
                    
149                exit(0);
                    
185			{
                    
186                                FPRINTF(stderr, "No worker may execute this task\n");
                    
187                                exit(0);
                    
                
smp.c https://github.com/fopina/ZTE-Joe-Kernel-2.6.29.git | C | 615 lines
                    
54#include <asm/udbg.h>
                    
55#define DBG(fmt...) udbg_printf(fmt)
                    
56#else
                    
                
pixcut.c https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C | 380 lines
                    
154		perror(in_name);
                    
155		(void)fprintf(stderr,
                    
156			      "pixcut: cannot open \"%s\" for reading\n",
                    
163    if (argc > ++bu_optind) {
                    
164	(void)fprintf(stderr, "pixcut: excess argument(s) ignored\n");
                    
165    }
                    
182    if (!get_args(argc, argv)) {
                    
183	(void)fprintf(stderr, "%s", usage);
                    
184	bu_exit (1, NULL);
                    
192	} else {
                    
193	    (void) fprintf(stderr, "pixcut: unable to autosize\n");
                    
194	}
                    
214    if (Verbose) {
                    
215	(void)fprintf(stderr, "pixcut: Copyright (C) 1992 Paladin Software\n");
                    
216	(void)fprintf(stderr, "pixcut: All rights reserved.\npixcut:\n");
                    
                
rle-pix.c https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C | 363 lines
                    
217    if (hflag) {
                    
218	printf("-w%d -n%d\n",
                    
219	       screen_width, screen_height);
                    
                
zend_objects_API.c https://gitlab.com/envieidoc/advancedtomato2 | C | 423 lines
                    
135#if ZEND_DEBUG_OBJECTS
                    
136	fprintf(stderr, "Allocated object id #%d\n", handle);
                    
137#endif
                    
153#if ZEND_DEBUG_OBJECTS
                    
154	fprintf(stderr, "Increased refcount of object id #%d\n", handle);
                    
155#endif
                    
239	if (obj->refcount == 0) {
                    
240		fprintf(stderr, "Deallocated object id #%d\n", handle);
                    
241	} else {
                    
241	} else {
                    
242		fprintf(stderr, "Decreased refcount of object id #%d\n", handle);
                    
243	}
                    
                
depchk.c https://github.com/richlowe/illumos-gate.git | C | 349 lines
                    
130			if (a_dck[i].err_msg == (char **)NULL) {
                    
131				(void) snprintf(msgbuf, sizeof (msgbuf),
                    
132					ERR_DEPENDENCY_IGNORED, a_dck[i].name,
                    
137				/* LINTED variable format specifier to ... */
                    
138				(void) snprintf(msgbuf, sizeof (msgbuf),
                    
139					*a_dck[i].err_msg, "package",
                    
303		if (a_dck[a_depIndex].err_msg == (char **)NULL) {
                    
304			(void) snprintf(msgbuf, sizeof (msgbuf),
                    
305			ERR_DEPENDENCY_REPORT, a_eir->ier_values[a_errIndex],
                    
308		} else {
                    
309			/* LINTED variable format specifier to snprintf(); */
                    
310			(void) snprintf(msgbuf, sizeof (msgbuf),
                    
340		p = calloc(1, len);
                    
341		(void) snprintf(p, len, "%s, %s", zn,
                    
342			a_eir->ier_zones[a_errIndex]);
                    
                
dmitest.c https://github.com/pierre/syslinux.git | C | 224 lines
                    
45    for (i = 0; i < dmi->memory_count; i++) {
                    
46	moreprintf("Memory Bank %d\n", i);
                    
47	moreprintf("\tForm Factor  : %s\n", dmi->memory[i].form_factor);
                    
47	moreprintf("\tForm Factor  : %s\n", dmi->memory[i].form_factor);
                    
48	moreprintf("\tType         : %s\n", dmi->memory[i].type);
                    
49	moreprintf("\tType Detail  : %s\n", dmi->memory[i].type_detail);
                    
49	moreprintf("\tType Detail  : %s\n", dmi->memory[i].type_detail);
                    
50	moreprintf("\tSpeed        : %s\n", dmi->memory[i].speed);
                    
51	moreprintf("\tSize         : %s\n", dmi->memory[i].size);
                    
51	moreprintf("\tSize         : %s\n", dmi->memory[i].size);
                    
52	moreprintf("\tDevice Set   : %s\n", dmi->memory[i].device_set);
                    
53	moreprintf("\tDevice Loc.  : %s\n", dmi->memory[i].device_locator);
                    
53	moreprintf("\tDevice Loc.  : %s\n", dmi->memory[i].device_locator);
                    
54	moreprintf("\tBank Locator : %s\n", dmi->memory[i].bank_locator);
                    
55	moreprintf("\tTotal Width  : %s\n", dmi->memory[i].total_width);
                    
                
powersuspend.c https://gitlab.com/DroidThug-2/delta_msm8916 | C | 324 lines
                    
188{
                    
189        return sprintf(buf, "%u\n", state);
                    
190}
                    
219{
                    
220        return sprintf(buf, "%u\n", mode);
                    
221}
                    
249{
                    
250	return sprintf(buf, "version: %d.%d\n", MAJOR_VERSION, MINOR_VERSION);
                    
251}
                    
                
bmp-280-sensor.c https://gitlab.com/rdeterre/contiki | C | 392 lines
                    
52#if DEBUG
                    
53#define PRINTF(...) printf(__VA_ARGS__)
                    
54#else
                    
54#else
                    
55#define PRINTF(...)
                    
56#endif
                    
299  if(enabled != SENSOR_STATUS_READY) {
                    
300    PRINTF("Sensor disabled or starting up (%d)\n", enabled);
                    
301    return CC26XX_SENSOR_READING_ERROR;
                    
304  if((type != BMP_280_SENSOR_TYPE_TEMP) && type != BMP_280_SENSOR_TYPE_PRESS) {
                    
305    PRINTF("Invalid type\n");
                    
306    return CC26XX_SENSOR_READING_ERROR;
                    
315
                    
316    PRINTF("val: %02x%02x%02x %02x%02x%02x\n",
                    
317           sensor_value[0], sensor_value[1], sensor_value[2],
                    
                
cache.c https://github.com/blacklion/GEOM-Events.git | C | 636 lines
                    
49
                    
50    asprintf(&name, "%d:%u", uid, n);
                    
51
                    
                
pmksa_cache.c https://github.com/blacklion/GEOM-Events.git | C | 476 lines
                    
66		pmksa->pmksa = entry->next;
                    
67		wpa_printf(MSG_DEBUG, "RSN: expired PMKSA cache entry for "
                    
68			   MACSTR, MAC2STR(entry->aa));
                    
162			    0) {
                    
163				wpa_printf(MSG_DEBUG, "WPA: reusing previous "
                    
164					   "PMKSA entry");
                    
180				 */
                    
181				wpa_printf(MSG_DEBUG, "RSN: replacing current "
                    
182					   "PMKSA entry");
                    
184			}
                    
185			wpa_printf(MSG_DEBUG, "RSN: Replace PMKSA entry for "
                    
186				   "the current AP");
                    
197		pmksa->pmksa = pos->next;
                    
198		wpa_printf(MSG_DEBUG, "RSN: removed the oldest PMKSA cache "
                    
199			   "entry (for " MACSTR ") to make room for new one",
                    
                
toeplitz.c https://github.com/tiwai/sound.git | C | 587 lines
                    
90
                    
91#define log_verbose(args...)	do { if (cfg_verbose) fprintf(stderr, args); } while (0)
                    
92
                    
249
                    
250	fprintf(stderr, "count: pass=%u nohash=%u fail=%u\n",
                    
251		frames_received - frames_nohash - frames_error,
                    
439	for (i = 0; i < cfg_num_queues; i++)
                    
440		fprintf(stderr, "rxq %d: cpu %d\n", i, rx_irq_cpus[i]);
                    
441}
                    
447	for (i = 0; i < cfg_num_rps_cpus; i++)
                    
448		fprintf(stderr, "silo %d: cpu %d\n", i, rps_silo_to_cpu[i]);
                    
449}
                    
                
mali_kbase_debug_ktrace.c https://gitlab.com/buktemirlnk/mirrors | C | 356 lines
                    
68{
                    
69	written += MAX(snprintf(buffer + written, MAX(sz - written, 0),
                    
70			"secs,thread_id,cpu,code,kctx,"), 0);
                    
73
                    
74	written += MAX(snprintf(buffer + written, MAX(sz - written, 0),
                    
75			",info_val,ktrace_version=%u.%u",
                    
90	 */
                    
91	written += MAX(snprintf(buffer + written, MAX(sz - written, 0),
                    
92			"%d.%.6d,%d,%d,%s,",
                    
99	if (trace_msg->kctx_tgid) {
                    
100		written += MAX(snprintf(buffer + written, MAX(sz - written, 0),
                    
101				"%d_%u",
                    
104	/* Trailing comma */
                    
105	written += MAX(snprintf(buffer + written, MAX(sz - written, 0),
                    
106			","), 0);
                    
                
viewweight.c https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C | 452 lines
                    
211
                    
212    snprintf(densityfile, i, "%s/%s", curdir, DENSITY_FILE);
                    
213
                    
214    if ( (densityfp=fopen( densityfile, "r" )) == (FILE *) 0 ) {
                    
215	snprintf(densityfile, i, "%s/%s", homedir, DENSITY_FILE);
                    
216	if ( (densityfp=fopen( densityfile, "r" )) == (FILE *) 0 ) {
                    
331
                    
332    fprintf( outfp, "RT Weight Program Output:\n" );
                    
333    fprintf( outfp, "\nDatabase Title: \"%s\"\n", dbp->dbi_title );
                    
333    fprintf( outfp, "\nDatabase Title: \"%s\"\n", dbp->dbi_title );
                    
334    fprintf( outfp, "Time Stamp: %s\n\nDensity Table Used:%s\n\n", timeptr, densityfile );
                    
335    fprintf( outfp, "Material  Density(g/cm^3)  Name\n" );
                    
338	if ( density[i] >= 0 )
                    
339	    fprintf( outfp, "%5d     %10.4f       %s\n",
                    
340		     i, density[i], dens_name[i] );
                    
                
nfscbd.c https://bitbucket.org/freebsd/freebsd-base.git | C | 373 lines
                    
67#ifdef DEBUG
                    
68#define	syslog(e, s)	fprintf(stderr,(s))
                    
69static int	debug = 1;
                    
167				    myfqdnname != NULL)
                    
168					snprintf(princname, sizeof (princname),
                    
169					    "%s@%s", cp, myfqdnname);
                    
                
usb_template_midi.c https://bitbucket.org/freebsd/freebsd-base.git | C | 314 lines
                    
272
                    
273	snprintf(parent_name, sizeof(parent_name), "%d", USB_TEMP_MIDI);
                    
274	sysctl_ctx_init(&midi_ctx_list);
                    
                
time.c https://bitbucket.org/freebsd/freebsd-base.git | C | 279 lines
                    
75 * and a human explanatory part at the end. The machine parseable part
                    
76 * is generated strictly by APR and our code, with a apr_snprintf. The
                    
77 * human explanatory part is generated by apr_strftime, which means
                    
83#define SVN_TIME__MAX_LENGTH 80
                    
84/* Machine parseable part, generated by apr_snprintf. */
                    
85#define HUMAN_TIMESTAMP_FORMAT "%.4d-%.2d-%.2d %.2d:%.2d:%.2d %+.2d%.2d"
                    
108     string between the writer and reader. */
                    
109  return apr_psprintf(pool,
                    
110                      TIMESTAMP_FORMAT,
                    
226  /* Put in machine parseable part */
                    
227  len = apr_snprintf(datestr,
                    
228                     SVN_TIME__MAX_LENGTH,
                    
                
mtk_usb_phy.c https://bitbucket.org/freebsd/freebsd-base.git | C | 326 lines
                    
151		if (sc->res == NULL) {
                    
152			device_printf(dev, "could not map memory\n");
                    
153			return (ENXIO);
                    
234		if ((val = USB_PHY_READ_FM(sc, U2_PHY_FMMONR0)) != 0) {
                    
235			device_printf(sc->dev, "DONE with FDET\n");
                    
236			break;
                    
239	}
                    
240	device_printf(sc->dev, "After FDET\n");
                    
241
                    
                
skein_debug.c https://bitbucket.org/freebsd/freebsd-base.git | C | 247 lines
                    
23        {
                    
24        if (i % 4 ==  0) printf(INDENT);
                    
25        printf(" %08X.%08X ",(uint_32t)(X[j] >> 32),(uint_32t)X[j]);
                    
25        printf(" %08X.%08X ",(uint_32t)(X[j] >> 32),(uint_32t)X[j]);
                    
26        if (i % 4 ==  3 || i==cnt-1) printf("\n");
                    
27        fflush(stdout);
                    
48        {
                    
49        if (i %16 ==  0) printf(INDENT);
                    
50        else if (i % 4 == 0) printf(" ");
                    
50        else if (i % 4 == 0) printf(" ");
                    
51        printf(" %02X",b[i]);
                    
52        if (i %16 == 15 || i==cnt-1) printf("\n");
                    
80        {
                    
81        printf("\n%s Final output=\n",AlgoHeader(bits));
                    
82        Show08(cnt,outPtr);
                    
                
lp.tsol_separator.c https://github.com/richlowe/illumos-gate.git | C | 528 lines
                    
145	} else if (getlabel(ArgFile, FileLabel) != 0) {
                    
146		(void) fprintf(ArgLogFile,
                    
147		    gettext("%1$s: cannot get label of %2$s: %3$s\n"),
                    
164	if (ArgDebugLevel >= 1)
                    
165		(void) fprintf(ArgLogFile, gettext("Done.\n"));
                    
166	m_label_free(FileLabel);
                    
178	/* Emit ending PostScript code */
                    
179	(void) printf("end\n\n");
                    
180	(void) printf("%%%% End of code generated by lp.tsol_separator\n\n");
                    
187	/* Emit preliminary PostScript code */
                    
188	(void) printf("%%!\n\n");
                    
189	(void) printf("%%%% Begin code generated by lp.tsol_separator\n\n");
                    
190
                    
191	(void) printf("%%%% Create JobDict if it doesn't exist\n");
                    
192	(void) printf("userdict /JobDict known not {\n");
                    
                
cpuidle.c https://bitbucket.org/davinchi/kernel-ics.git | C | 426 lines
                    
271
                    
272	snprintf(state->name, CPUIDLE_NAME_LEN, "C0");
                    
273	snprintf(state->desc, CPUIDLE_DESC_LEN, "CPUIDLE CORE POLL IDLE");
                    
                
partition-generic.c https://gitlab.com/envieidoc/sprd_project | C | 582 lines
                    
36	if (!partno)
                    
37		snprintf(buf, BDEVNAME_SIZE, "%s", hd->disk_name);
                    
38	else if (isdigit(hd->disk_name[strlen(hd->disk_name)-1]))
                    
38	else if (isdigit(hd->disk_name[strlen(hd->disk_name)-1]))
                    
39		snprintf(buf, BDEVNAME_SIZE, "%sp%d", hd->disk_name, partno);
                    
40	else
                    
40	else
                    
41		snprintf(buf, BDEVNAME_SIZE, "%s%d", hd->disk_name, partno);
                    
42
                    
59{
                    
60	scnprintf(buffer, BDEVNAME_SIZE, "unknown-block(%u,%u)",
                    
61				MAJOR(dev), MINOR(dev));
                    
71
                    
72	return sprintf(buf, "%d\n", p->partno);
                    
73}
                    
                
portals.c https://gitlab.com/madscientist159/darkplaces | C | 480 lines
                    
174	if (ranoutofportalplanes)
                    
175		Con_Printf("Portal_RecursiveFlowSearch: ran out of %d plane stack when recursing through portals\n", MAXRECURSIVEPORTALPLANES);
                    
176	if (ranoutofportals)
                    
176	if (ranoutofportals)
                    
177		Con_Printf("Portal_RecursiveFlowSearch: ran out of %d portal stack when recursing through portals\n", MAXRECURSIVEPORTALS);
                    
178
                    
471	if (ranoutofportalplanes)
                    
472		Con_Printf("Portal_RecursiveFlow: ran out of %d plane stack when recursing through portals\n", MAXRECURSIVEPORTALPLANES);
                    
473	if (ranoutofportals)
                    
473	if (ranoutofportals)
                    
474		Con_Printf("Portal_RecursiveFlow: ran out of %d portal stack when recursing through portals\n", MAXRECURSIVEPORTALS);
                    
475	if (numsurfacespointer)
                    
                
t_mincore.c https://gitlab.com/storedmirrors/minix | C | 318 lines
                    
97#if 0
                    
98		(void)fprintf(stderr, "page 0x%p is %sresident\n",
                    
99		    (char *)addr + (i * page), vec[i] ? "" : "not ");
                    
300
                    
301	(void)fprintf(stderr, "%zu pages still resident\n", npgs);
                    
302
                    
                
pcap-nit.c https://gitlab.com/storedmirrors/minix | C | 372 lines
                    
121				return (0);
                    
122			snprintf(p->errbuf, sizeof(p->errbuf), "pcap_read: %s",
                    
123				pcap_strerror(errno));
                    
175		default:
                    
176			snprintf(p->errbuf, sizeof(p->errbuf),
                    
177			    "bad nit state %d", nh->nh_state);
                    
213	if (ret == -1) {
                    
214		snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "send: %s",
                    
215		    pcap_strerror(errno));
                    
256	if (ioctl(p->fd, SIOCSNIT, &nioc) < 0) {
                    
257		snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "SIOCSNIT: %s",
                    
258		    pcap_strerror(errno));
                    
287	if (fd < 0) {
                    
288		snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
                    
289		    "socket: %s", pcap_strerror(errno));
                    
                
get-bit.c https://gitlab.com/dedstroyer/mai-workshops-2013 | C | 214 lines
                    
96         */
                    
97        fprintf(stderr, "error: %lu is not integer number.", input_number);
                    
98        return 1;
                    
105         */
                    
106        fprintf(stderr, "error: %hu is not number of bit.", numbit);
                    
107        return 1;
                    
113    bit = get_bit(input_number, numbit);
                    
114    printf("%hu\n", bit);
                    
115    return 0;
                    
183        for(i = 0; i < width; ++i)
                    
184            fprintf(stderr, "0");
                    
185    }
                    
194        debug_print_binaryw(input / 2, (width) ? (width - 1) : 0);
                    
195        fprintf(stderr, "%hu", digit);
                    
196    }
                    
                
perf.c https://github.com/dmitriy103/bravo_kernel-2.6.35.git | C | 506 lines
                    
88	path = getenv(PERF_DEBUGFS_ENVIRONMENT);
                    
89	snprintf(debugfs_path, MAXPATHLEN, "%s/%s", path ?: debugfs_mntpt,
                    
90		 "tracing/events");
                    
131			if (*argc < 2) {
                    
132				fprintf(stderr, "No directory given for --perf-dir.\n");
                    
133				usage(perf_usage_string);
                    
146			if (*argc < 2) {
                    
147				fprintf(stderr, "No directory given for --work-tree.\n");
                    
148				usage(perf_usage_string);
                    
160			if (*argc < 2) {
                    
161				fprintf(stderr, "No directory given for --debugfs-dir.\n");
                    
162				usage(perf_usage_string);
                    
175		} else {
                    
176			fprintf(stderr, "Unknown option: %s\n", cmd);
                    
177			usage(perf_usage_string);
                    
                
recordmcount.c https://github.com/mstsirkin/kvm.git | C | 471 lines
                    
116	if (addr == 0) {
                    
117		fprintf(stderr, "malloc failed: %zu bytes\n", size);
                    
118		fail_file();
                    
173	if (!S_ISREG(sb.st_mode)) {
                    
174		fprintf(stderr, "not a regular file: %s\n", fname);
                    
175		fail_file();
                    
298	default:
                    
299		fprintf(stderr, "unrecognized ELF data encoding %d: %s\n",
                    
300			ehdr->e_ident[EI_DATA], fname);
                    
322	||  ehdr->e_ident[EI_VERSION] != EV_CURRENT) {
                    
323		fprintf(stderr, "unrecognized ET_REL file %s\n", fname);
                    
324		fail_file();
                    
329	default:
                    
330		fprintf(stderr, "unrecognized e_machine %d %s\n",
                    
331			w2(ehdr->e_machine), fname);
                    
                
getdelays.c https://github.com/dmitriy103/bravo_kernel-2.6.35.git | C | 506 lines
                    
41	do {					\
                    
42		fprintf(stderr, fmt, ##arg);	\
                    
43		exit(code);			\
                    
54
                    
55#define PRINTF(fmt, arg...) {			\
                    
56	    if (dbg) {				\
                    
56	    if (dbg) {				\
                    
57		printf(fmt, ##arg);		\
                    
58	    }					\
                    
75{
                    
76	fprintf(stderr, "getdelays [-dilv] [-w logfile] [-r bufsize] "
                    
77			"[-m cpumask] [-t tgid] [-p pid]\n");
                    
77			"[-m cpumask] [-t tgid] [-p pid]\n");
                    
78	fprintf(stderr, "  -d: print delayacct stats\n");
                    
79	fprintf(stderr, "  -i: print IO accounting (works only with -p)\n");
                    
                
dt_dis.c https://github.com/blacklion/GEOM-Events.git | C | 511 lines
                    
38{
                    
39	(void) fprintf(fp, "%-4s %%r%u, %%r%u, %%r%u", name,
                    
40	    DIF_INSTR_R1(in), DIF_INSTR_R2(in), DIF_INSTR_RD(in));
                    
47{
                    
48	(void) fprintf(fp, "%-4s %u", name, DIF_INSTR_LABEL(in));
                    
49}
                    
54{
                    
55	(void) fprintf(fp, "%-4s [%%r%u], %%r%u", name,
                    
56	    DIF_INSTR_R1(in), DIF_INSTR_RD(in));
                    
63{
                    
64	(void) fprintf(fp, "%-4s %%r%u, [%%r%u]", name,
                    
65	    DIF_INSTR_R1(in), DIF_INSTR_RD(in));
                    
71{
                    
72	(void) fprintf(fp, "%s", name);
                    
73}
                    
                
utxferror.c https://github.com/blacklion/GEOM-Events.git | C | 483 lines
                    
93#define ACPI_MSG_SUFFIX \
                    
94    AcpiOsPrintf (" (%8.8X/%s-%u)\n", ACPI_CA_VERSION, ModuleName, LineNumber)
                    
95
                    
102 *              LineNumber          - Caller's line number (for error output)
                    
103 *              Format              - Printf format string + additional args
                    
104 *
                    
121    ACPI_MSG_REDIRECT_BEGIN;
                    
122    AcpiOsPrintf (ACPI_MSG_ERROR);
                    
123
                    
124    va_start (ArgList, Format);
                    
125    AcpiOsVprintf (Format, ArgList);
                    
126    ACPI_MSG_SUFFIX;
                    
141 *              Status              - Status to be formatted
                    
142 *              Format              - Printf format string + additional args
                    
143 *
                    
                
cmd_pmc440.c https://github.com/zhanggf/U-boot-2009.11_tekkaman.git | C | 557 lines
                    
92	if (got_hcirq)
                    
93		printf("Got interrupt!\n");
                    
94
                    
109	while (!((ctrl = FPGA_IN32(&fpga->fifo[f].ctrl)) & FIFO_EMPTY)) {
                    
110		printf("%5d  %d    %3d  %08x",
                    
111		       (*n)++, f, ctrl & (FIFO_LEVEL_MASK | FIFO_FULL),
                    
113		if (ctrl & FIFO_OVERFLOW) {
                    
114			printf(" OVERFLOW\n");
                    
115			FPGA_CLRBITS(&fpga->fifo[f].ctrl, FIFO_OVERFLOW);
                    
116		} else
                    
117			printf("\n");
                    
118	}
                    
134		/* print all fifos status information */
                    
135		printf("fifo level status\n");
                    
136		printf("______________________________\n");
                    
                
nf_conntrack_proto_icmp.c https://bitbucket.org/mateusz_krawczuk/rockchip2818-kernel.git | C | 324 lines
                    
71{
                    
72	return seq_printf(s, "type=%u code=%u id=%u ",
                    
73			  tuple->dst.u.icmp.type,
                    
                
libipt_tcp.c https://github.com/SgtPepperKSU/TomatoVPN.git | C | 416 lines
                    
13{
                    
14	printf(
                    
15"TCP v%s options:\n"
                    
246	if (numeric || (service = port_to_service(port)) == NULL)
                    
247		printf("%u", port);
                    
248	else
                    
248	else
                    
249		printf("%s", service);
                    
250}
                    
258	if (min != 0 || max != 0xFFFF || invert) {
                    
259		printf("%s", name);
                    
260		if (min == max) {
                    
260		if (min == max) {
                    
261			printf(":%s", inv);
                    
262			print_port(min, numeric);
                    
                
mtd_debug.c https://bitbucket.org/thelearninglabs/uclinux-distro-tll-public.git | C | 394 lines
                    
89	}
                    
90	fprintf(stderr, "Erased %d bytes from address 0x%.8x in flash\n", bytes, offset);
                    
91	return 0;
                    
97	static const char *flags = "KMGT";
                    
98	printf("%u ", x);
                    
99	for (i = 0; x >= 1024 && flags[i] != '\0'; i++)
                    
102	if (i >= 0)
                    
103		printf("(%u%c)", x, flags[i]);
                    
104}
                    
125#define BUF_SIZE	(64 * 1024 * sizeof(u_int8_t))
                    
126		fprintf(stderr, "%s: malloc(%#x)\n", __func__, size);
                    
127		if (size != BUF_SIZE) {
                    
128			size = BUF_SIZE;
                    
129			fprintf(stderr, "%s: trying buffer size %#x\n", __func__, size);
                    
130			goto retry;
                    
                
error.c https://bitbucket.org/ddevine/haiku.git | C | 454 lines
                    
88  if (line > 0)
                    
89    fprintf (stderr, "%s:%s%d: ", ename, gnu_error_format ? "" : _(" line "), line);
                    
90  else
                    
90  else
                    
91    fprintf (stderr, "%s: ", ename);
                    
92}
                    
128/* Report an error having to do with FILENAME.  This does not use
                    
129   sys_error so the filename is not interpreted as a printf-style
                    
130   format string. */
                    
155
                    
156  vfprintf (stderr, format, args);
                    
157  fprintf (stderr, "\n");
                    
163      h = last_history_line ();
                    
164      fprintf (stderr, _("last command: %s\n"), h ? h : "(null)");
                    
165    }
                    
                
umount.c https://bitbucket.org/killerpenguinassassins/open_distrib_devel.git | C | 399 lines
                    
263	if (verbose)
                    
264		(void)printf("%s: unmount from %s\n", name, mntpt);
                    
265	if (fake)
                    
389#ifdef SMALL
                    
390	(void)fprintf(stderr,
                    
391	    "Usage: %s [-fR]  special | node\n", getprogname());
                    
392#else
                    
393	(void)fprintf(stderr,
                    
394	    "Usage: %s [-fvFR] [-t fstypelist] special | node\n"
                    
                
mfi_volume.c https://bitbucket.org/freebsd/freebsd-base.git | C | 500 lines
                    
61	default:
                    
62		sprintf(buf, "LSTATE 0x%02x", state);
                    
63		return (buf);
                    
127	if (changes & MR_LD_CACHE_ALLOW_WRITE_CACHE)
                    
128		printf("%s caching of I/O writes\n",
                    
129		    policy & MR_LD_CACHE_ALLOW_WRITE_CACHE ? "Enabling" :
                    
131	if (changes & MR_LD_CACHE_ALLOW_READ_CACHE)
                    
132		printf("%s caching of I/O reads\n",
                    
133		    policy & MR_LD_CACHE_ALLOW_READ_CACHE ? "Enabling" :
                    
135	if (changes & MR_LD_CACHE_WRITE_BACK)
                    
136		printf("Setting write cache policy to %s\n",
                    
137		    policy & MR_LD_CACHE_WRITE_BACK ? "write-back" :
                    
139	if (changes & (MR_LD_CACHE_READ_AHEAD | MR_LD_CACHE_READ_ADAPTIVE))
                    
140		printf("Setting read ahead policy to %s\n",
                    
141		    policy & MR_LD_CACHE_READ_AHEAD ?
                    
                
utils.c https://github.com/Prajna/mach.git | C | 482 lines
                    
58 * 
                    
59 * 	Add SkipVFPrintf, so that WriteCopyType doesn't print fields in
                    
60 * 	comments.
                    
96
                    
97extern int vfprintf(FILE *file, const char *fmt, va_list);
                    
98
                    
101{
                    
102    fprintf(file, "#include %s\n", filename);
                    
103}
                    
107{
                    
108    fprintf(file, "#ifndef\tlint\n");
                    
109    fprintf(file, "#if\tUseExternRCSId\n");
                    
109    fprintf(file, "#if\tUseExternRCSId\n");
                    
110    fprintf(file, "char %s_rcsid[] = %s;\n", name, rcs);
                    
111    fprintf(file, "#else\t/* UseExternRCSId */\n");
                    
                
spigot2filterbank.c https://github.com/joerivanleeuwen/presto.git | C | 387 lines
                    
86      if (fabs(hgt-880.0) > 0.01) {
                    
87         printf("Warning!:  SLALIB is not correctly identifying the GBT!\n\n");
                    
88      }
                    
88      }
                    
89      //printf("slalib: %d '%s' '%s' %f  %f  %f\n", 
                    
90      //      N, scope, name, lon, lat, hgt);
                    
97             dtmp,dtmp,temp,atm,humid,microns,tlr,&rap,&dap);
                    
98      //printf("slalib:  %.15f  %.15f\n", rap, dap);
                    
99      slaAmp(rap,dap,MJD,eq,&rmn,&dmn);
                    
99      slaAmp(rap,dap,MJD,eq,&rmn,&dmn);
                    
100      //printf("slalib:  %.15f  %.15f\n", rmn, dmn);
                    
101
                    
144      if (!cmd->outfileP && !cmd->stdoutP) {
                    
145         fprintf(stderr,
                    
146                 "\nspigot2filterbank ERROR:  You need to specify an output\n"
                    
                
getevent.c https://github.com/CharlieWood/platform_system_core.git | C | 470 lines
                    
34    
                    
35    printf("  events:\n");
                    
36    for(i = 0; i <= EV_MAX; i++) {
                    
44            if(bits == NULL) {
                    
45                fprintf(stderr, "failed to allocate buffer of size %d\n", bits_size);
                    
46                return 1;
                    
100                    if(count == 0)
                    
101                        printf("    %s (%04x):", label, i);
                    
102                    else if((count & 0x7) == 0 || i == EV_ABS)
                    
102                    else if((count & 0x7) == 0 || i == EV_ABS)
                    
103                        printf("\n               ");
                    
104                    printf(" %04x%c", j * 8 + k, down);
                    
107                        if(ioctl(fd, EVIOCGABS(j * 8 + k), &abs) == 0) {
                    
108                            printf(" value %d, min %d, max %d, fuzz %d flat %d", abs.value, abs.minimum, abs.maximum, abs.fuzz, abs.flat);
                    
109                        }
                    
                
mako_hotplug.c https://gitlab.com/Hache/Singularity-DeYuS | C | 566 lines
                    
277
                    
278	return snprintf(buf, PAGE_SIZE, "%u\n", t->enabled);
                    
279}
                    
301
                    
302	return snprintf(buf, 10, "%u\n", t->load_threshold);
                    
303}
                    
325
                    
326	return snprintf(buf, 10, "%u\n", t->high_load_counter);
                    
327}
                    
349
                    
350	return snprintf(buf, 10, "%u\n", t->max_load_counter);
                    
351}
                    
373
                    
374	return snprintf(buf, 10, "%u\n", t->cpufreq_unplug_limit);
                    
375}
                    
                
early.c https://github.com/tklauser/linux-nios2.git | C | 584 lines
                    
118
                    
119	hlen = snprintf(defsys_cmd, DEFSYS_CMD_SIZE,
                    
120			"DEFSYS %s 00000-%.5X EW %.5X-%.5X SR %.5X-%.5X",
                    
128		min_size = einitrd_pfn << 2;
                    
129		hlen += snprintf(defsys_cmd + hlen, DEFSYS_CMD_SIZE - hlen,
                    
130				 " EW %.5X-%.5X", sinitrd_pfn, einitrd_pfn);
                    
133
                    
134	snprintf(defsys_cmd + hlen, DEFSYS_CMD_SIZE - hlen,
                    
135		 " EW MINSIZE=%.7iK PARMREGS=0-13", min_size);
                    
136	defsys_cmd[DEFSYS_CMD_SIZE - 1] = '\0';
                    
137	snprintf(savesys_cmd, SAVESYS_CMD_SIZE, "SAVESYS %s \n IPL %s",
                    
138		 kernel_nss_name, kernel_nss_name);
                    
263	EBCASC(mach->model_capacity, sizeof(mach->model_capacity));
                    
264	sprintf(mstr, "%-16.16s %-4.4s %-16.16s %-16.16s",
                    
265		mach->manufacturer, mach->type,
                    
                
NetworkInterface.c https://gitlab.com/21mece13/FreeRTOS | C | 464 lines
                    
109
                    
110#if ( ipconfigHAS_PRINTF != 0 )
                    
111	static void prvMonitorResources( void );
                    
168		{
                    
169			FreeRTOS_printf( ( "xEMACInit: EmacPs Configuration Failed....\n" ) );
                    
170		}
                    
328
                    
329#if ( ipconfigHAS_PRINTF != 0 )
                    
330	static void prvMonitorResources()
                    
343			uxLastMinBufferCount = uxCurrentBufferCount;
                    
344			FreeRTOS_printf( ( "Network buffers: %lu lowest %lu\n",
                    
345							   uxGetNumberOfFreeNetworkBuffers(),
                    
353			uxMinLastSize = uxMinSize;
                    
354			FreeRTOS_printf( ( "Heap: current %lu lowest %lu\n", xPortGetFreeHeapSize(), uxMinSize ) );
                    
355		}
                    
                
m480_eth.c https://gitlab.com/21mece13/FreeRTOS | C | 448 lines
                    
141    }
                    
142	FreeRTOS_printf(("PHY ID 1:0x%x\r\n", mdio_read(CONFIG_PHY_ADDR, MII_PHYSID1)));
                    
143	FreeRTOS_printf(("PHY ID 2:0x%x\r\n", mdio_read(CONFIG_PHY_ADDR, MII_PHYSID2)));
                    
                
xen_platform.c https://gitlab.com/paelzer/qemu | C | 519 lines
                    
42#ifdef DEBUG_PLATFORM
                    
43#define DPRINTF(fmt, ...) do { \
                    
44    fprintf(stderr, "xen_platform: " fmt, ## __VA_ARGS__); \
                    
46#else
                    
47#define DPRINTF(fmt, ...) do { } while (0)
                    
48#endif
                    
183                   UNPLUG_NVME_DISKS)) {
                    
184            DPRINTF("unplug disks\n");
                    
185            pci_unplug_disks(pci_get_bus(pci_dev), val);
                    
187        if (val & UNPLUG_ALL_NICS) {
                    
188            DPRINTF("unplug nics\n");
                    
189            pci_unplug_nics(pci_get_bus(pci_dev));
                    
195        case 1:
                    
196            DPRINTF("Citrix Windows PV drivers loaded in guest\n");
                    
197            break;
                    
                
confdata.c https://github.com/semiecho/android_external_busybox.git | C | 574 lines
                    
17static void conf_warning(const char *fmt, ...)
                    
18	__attribute__ ((format (printf, 1, 2)));
                    
19
                    
36	va_start(ap, fmt);
                    
37	fprintf(stderr, "%s:%d:warning: ", conf_filename, conf_lineno);
                    
38	vfprintf(stderr, fmt, ap);
                    
38	vfprintf(stderr, fmt, ap);
                    
39	fprintf(stderr, "\n");
                    
40	va_end(ap);
                    
79		fullname = realloc(fullname, strlen(env) + strlen(name) + 2);
                    
80		sprintf(fullname, "%s/%s", env, name);
                    
81		if (!stat(fullname, &buf))
                    
102			if (in) {
                    
103				printf(_("#\n"
                    
104				         "# using defaults found in %s\n"
                    
                
scsi-generic.c https://github.com/hjwsm1989/qemu-kvm.git | C | 496 lines
                    
23#ifdef DEBUG_SCSI
                    
24#define DPRINTF(fmt, ...) \
                    
25do { printf("scsi-generic: " fmt , ## __VA_ARGS__); } while (0)
                    
26#else
                    
27#define DPRINTF(fmt, ...) do {} while(0)
                    
28#endif
                    
30#define BADF(fmt, ...) \
                    
31do { fprintf(stderr, "scsi-generic: " fmt , ## __VA_ARGS__); } while (0)
                    
32
                    
107    }
                    
108    DPRINTF("Command complete 0x%p tag=0x%x status=%d\n",
                    
109            r, r->req.tag, status);
                    
118
                    
119    DPRINTF("Cancel tag=0x%x\n", req->tag);
                    
120    if (r->req.aiocb) {
                    
                
setup.c https://bitbucket.org/ayufan/caster.git | C | 428 lines
                    
99	case 'h':
                    
100		prom_printf("boot_flags_init: Halt!\n");
                    
101		prom_halt();
                    
207		default:
                    
208			prom_printf("Unknown cpu type, halting.\n");
                    
209			prom_halt();
                    
272{
                    
273	prom_printf("Serious problem, boot cpu id (%d) >= NR_CPUS (%d)\n",
                    
274		    cpu, NR_CPUS);
                    
351{
                    
352	seq_printf(m, 
                    
353		   "cpu\t\t: %s\n"
                    
421
                    
422	prom_printf("\n");
                    
423	flush_user_windows();
                    
                
unaligned.c https://github.com/SgtPepperKSU/TomatoVPN.git | C | 553 lines
                    
57 *
                    
58 *         printf("*p = %08lx\n", *p);
                    
59 *
                    
62 *         for(i = 0; i <= 7; i++)
                    
63 *         printf("%02x ", x.bar[i]);
                    
64 *         printf("\n");
                    
                
vf_psnr.c https://gitlab.com/sjchen1981/FFmpeg | C | 379 lines
                    
129    char value[128];
                    
130    snprintf(value, sizeof(value), "%0.2f", d);
                    
131    if (comp) {
                    
132        char key2[128];
                    
133        snprintf(key2, sizeof(key2), "%s%c", key, comp);
                    
134        av_dict_set(metadata, key2, value, 0);
                    
171    if (s->stats_file) {
                    
172        fprintf(s->stats_file, "n:%"PRId64" mse_avg:%0.2f ", s->nb_frames, mse);
                    
173        for (j = 0; j < s->nb_components; j++) {
                    
174            c = s->is_rgb ? s->rgba_map[j] : j;
                    
175            fprintf(s->stats_file, "mse_%c:%0.2f ", s->comps[j], comp_mse[c]);
                    
176        }
                    
176        }
                    
177        fprintf(s->stats_file, "psnr_avg:%0.2f ", get_psnr(mse, 1, s->average_max));
                    
178        for (j = 0; j < s->nb_components; j++) {
                    
                
ipod.c https://github.com/jdgordon/rockbox.git | C | 435 lines
                    
188#if defined(IPOD_1G2G) || defined(IPOD_3G)
                    
189    printf("Insert Firewire cable, or");
                    
190    printf("hold MENU+PLAY to reboot");
                    
190    printf("hold MENU+PLAY to reboot");
                    
191    printf("then REW+FF for disk mode");
                    
192#elif LCD_WIDTH >= (30*6)
                    
192#elif LCD_WIDTH >= (30*6)
                    
193    printf("Insert USB cable, or");
                    
194    printf("hold MENU+SELECT to reboot");
                    
194    printf("hold MENU+SELECT to reboot");
                    
195    printf("then SELECT+PLAY for disk mode");
                    
196#else
                    
196#else
                    
197    printf("Insert USB cable, or");
                    
198    printf("hold MENU+SELECT to");
                    
                
bitmap.c https://bitbucket.org/starup/android-rdp.git | C | 330 lines
                    
213	{
                    
214		printf("get invalid bitmap cell id: %d\n", id);
                    
215		return NULL;
                    
223	{
                    
224		printf("get invalid bitmap index %d in cell id: %d\n", index, id);
                    
225		return NULL;
                    
236	{
                    
237		printf("put invalid bitmap cell id: %d\n", id);
                    
238		return;
                    
246	{
                    
247		printf("put invalid bitmap index %d in cell id: %d\n", index, id);
                    
248		return;
                    
                
s2mg001_fuelgauge.c https://gitlab.com/SerenityS/android_kernel_exynos3475 | C | 423 lines
                    
368	case FG_DATA:
                    
369		i += scnprintf(buf + i, PAGE_SIZE - i, "%02x%02x\n",
                    
370			fg->reg_data[1], fg->reg_data[0]);
                    
                
snprintf.c https://bitbucket.org/thelearninglabs/uclinux-distro-tll-public.git | C | 507 lines
                    
49/*
                    
50**  SNPRINTF, VSNPRINT -- counted versions of printf
                    
51**
                    
63 *
                    
64 * snprintf() is used instead of sprintf() as it does limit checks
                    
65 * for string length.  This covers a nasty loophole.
                    
92    VA_START(fmt);
                    
93    len = vsnprintf(str, count, fmt, ap);
                    
94    VA_END;
                    
115    if(SnprfOverflow && tTd(57, 2))
                    
116        printf("\nvsnprintf overflow, len = %ld, str = %s",
                    
117               (long) count, shortenstring(str, MAXSHORTSTR));
                    
446    /*
                    
447    **  Use sprintf() instead of snprintf() since snprintf()
                    
448    **  does not support %qu or %llu.  The buffer is large enough
                    
                
timestamp.c https://github.com/Haxe/gtk-gnutella.git | C | 399 lines
                    
234
                    
235	return gm_snprintf(buf, size, "%s, %02d %s %04d %02d:%02d:%02d %c%04d",
                    
236		days[tm->tm_wday], tm->tm_mday, months[tm->tm_mon], tm->tm_year + 1900,
                    
256 * Same as date_to_rfc822_gchar(), to be able to use the two in the same
                    
257 * printf() line.
                    
258 */
                    
283	tm = gmtime(&date);
                    
284	return gm_snprintf(buf, size, "%s, %02d %s %04d %02d:%02d:%02d GMT",
                    
285		days[tm->tm_wday], tm->tm_mday, months[tm->tm_mon], tm->tm_year + 1900,
                    
                
http.c https://github.com/Shigaru/shigaru.git | C | 355 lines
                    
74    if (port > 0) {
                    
75        snprintf(hoststr, sizeof(hoststr), "%s:%d", hostname, port);
                    
76    } else {
                    
92
                    
93    snprintf(buf, sizeof(buf), "tcp://%s:%d", hostname, port);
                    
94    err = url_open(&hd, buf, URL_RDWR);
                    
171#ifdef DEBUG
                    
172        printf("http_code=%d\n", s->http_code);
                    
173#endif
                    
222    av_base64_encode(auth_b64, auth_b64_len, auth, strlen(auth));
                    
223    snprintf(s->buffer, sizeof(s->buffer),
                    
224             "%s %s HTTP/1.1\r\n"
                    
264#ifdef DEBUG
                    
265            printf("header='%s'\n", line);
                    
266#endif
                    
                
imcsmb.c https://bitbucket.org/freebsd/freebsd-base.git | C | 556 lines
                    
97		/* Nothing has been allocated, so there's no cleanup. */
                    
98		device_printf(dev, "Child smbus not added\n");
                    
99		rc = ENXIO;
                    
104	if ((rc = bus_generic_attach(dev)) != 0) {
                    
105		device_printf(dev, "Failed to attach smbus: %d\n", rc);
                    
106	}
                    
442	if (i == 0) {
                    
443		device_printf(sc->dev,
                    
444		    "transfer: timeout waiting for device to settle\n");
                    
479		rc = SMB_ETIMEOUT;
                    
480		device_printf(dev, "transfer timeout\n");
                    
481		goto out;
                    
                
AmigaOS.c https://github.com/ccflo/mono.git | C | 623 lines
                    
291#ifdef GC_AMIGA_PRINTSTATS
                    
292	printf("\n\n"
                    
293		"%d bytes of chip-mem, and %d bytes of fast-mem where allocated from the OS.\n",
                    
295	);
                    
296	printf(
                    
297		"%d bytes of chip-mem were returned from the GC_AMIGA_FASTALLOC supported allocating functions.\n",
                    
299	);
                    
300	printf("\n");
                    
301	printf("GC_gcollect was called %d times to avoid returning NULL or start allocating with the MEMF_ANY flag.\n",numcollects);
                    
301	printf("GC_gcollect was called %d times to avoid returning NULL or start allocating with the MEMF_ANY flag.\n",numcollects);
                    
302	printf("%d of them was a success. (the others had to use allocation from the OS.)\n",nullretries);
                    
303	printf("\n");
                    
303	printf("\n");
                    
304	printf("Succeded forcing %d gc-allocations (%d bytes) of chip-mem to be fast-mem.\n",succ,succ2);
                    
305	printf("Failed forcing %d gc-allocations (%d bytes) of chip-mem to be fast-mem.\n",nsucc,nsucc2);
                    
                
tip.c https://bitbucket.org/killerpenguinassassins/open_distrib_devel.git | C | 627 lines
                    
84	if (argc > 4) {
                    
85		fprintf(stderr, "usage: tip [-v] [-speed] [system-name]\n");
                    
86		exit(1);
                    
88	if (!isatty(0)) {
                    
89		fprintf(stderr, "%s: must be interactive\n", __progname);
                    
90		exit(1);
                    
111		default:
                    
112			fprintf(stderr, "%s: %s, unknown option\n", __progname,
                    
113			    argv[1]);
                    
127	if (strlen(sys) > sizeof PNbuf - 1) {
                    
128		fprintf(stderr, "%s: phone number too long (max = %d bytes)\n",
                    
129			__progname, (int)sizeof(PNbuf) - 1);
                    
135	PN = PNbuf;
                    
136	(void)snprintf(sbuf, sizeof(sbuf), "tip%ld", BR);
                    
137	sys = sbuf;
                    
                
interrupt.c https://bitbucket.org/killerpenguinassassins/open_distrib_devel.git | C | 467 lines
                    
165	for (i = 0; i < NCPU_INT; i++) {
                    
166		snprintf(cpu_intrtab[i].intr_evname,
                    
167		    sizeof(cpu_intrtab[i].intr_evname), "int %d", i);
                    
228		LIST_INIT(&icu_intrtab[i].intr_q);
                    
229		snprintf(icu_intrtab[i].intr_evname,
                    
230		    sizeof(icu_intrtab[i].intr_evname), "irq %d", i);
                    
353			if (__predict_false(ih->ih_func == NULL))
                    
354				printf("%s: spurious interrupt (irq = %d)\n",
                    
355				    __func__, irq);
                    
                
memory.c https://github.com/dmitriy103/bravo_kernel-2.6.35.git | C | 575 lines
                    
116		container_of(dev, struct memory_block, sysdev);
                    
117	return sprintf(buf, "%08lx\n", mem->phys_index);
                    
118}
                    
132	ret = is_mem_section_removable(start_pfn, PAGES_PER_SECTION);
                    
133	return sprintf(buf, "%d\n", ret);
                    
134}
                    
151		case MEM_ONLINE:
                    
152			len = sprintf(buf, "online\n");
                    
153			break;
                    
154		case MEM_OFFLINE:
                    
155			len = sprintf(buf, "offline\n");
                    
156			break;
                    
157		case MEM_GOING_OFFLINE:
                    
158			len = sprintf(buf, "going-offline\n");
                    
159			break;
                    
                
ssh-add.c https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C | 488 lines
                    
106	if (public == NULL) {
                    
107		printf("Bad key file %s\n", filename);
                    
108		return -1;
                    
110	if (ssh_remove_identity(ac, public)) {
                    
111		fprintf(stderr, "Identity removed: %s (%s)\n", filename, comment);
                    
112		ret = 0;
                    
113	} else
                    
114		fprintf(stderr, "Could not remove identity: %s\n", filename);
                    
115
                    
133	if (ret == 0)
                    
134		fprintf(stderr, "All identities removed.\n");
                    
135	else
                    
135	else
                    
136		fprintf(stderr, "Failed to remove all identities.\n");
                    
137
                    
                
bt_everything.c https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | C | 498 lines
                    
447      UChar ch = block[n];
                    
448      /* printf("%d ", (int)block[n]); */
                    
449      res = rol1(res) ^ (UInt)ch;
                    
451
                    
452   printf("MEM-L: final res 0x%llx, carrydep 0x%llx\n", res, carrydep);
                    
453
                    
481
                    
482   printf("REG-L: final res 0x%llx, carrydep 0x%llx\n", reg, carrydep);
                    
483
                    
                
0019.c https://gitlab.com/ideasman42/py-array-cow | C | 593 lines
                    
126{
                    
127	// printf("SIGFPE trapped\n");
                    
128}
                    
138		if (count) {
                    
139			printf("\nBlender killed\n");
                    
140			exit(2);
                    
141		}
                    
142		printf("\nSent an internal break event. Press ^C again to kill Blender\n");
                    
143		count++;
                    
150{
                    
151	printf ("Blender V %d.%02d\n", G.version/100, G.version%100);
                    
152	printf ("Usage: blender [options ...] [file]\n");
                    
153				
                    
154	printf ("\nRender options:\n");
                    
155	printf ("  -b <file>\tRender <file> in background\n");
                    
                
autoopts.c https://gitlab.com/dawei101/ocserv | C | 397 lines
                    
45#ifndef HAVE_SNPRINTF
                    
46#  define vsnprintf       option_vsnprintf
                    
47#  define snprintf        option_snprintf
                    
47#  define snprintf        option_snprintf
                    
48#  include "compat/snprintf.c"
                    
49#endif
                    
66    if (res == NULL) {
                    
67        fprintf(stderr, zalloc_fail, (int)sz);
                    
68        option_exits(EXIT_FAILURE);
                    
79    if (res == NULL) {
                    
80        fprintf(stderr, zrealloc_fail, (int)sz, p);
                    
81        option_exits(EXIT_FAILURE);
                    
92    if (res == NULL) {
                    
93        fprintf(stderr, zalloc_fail, (int)strlen(str));
                    
94        option_exits(EXIT_FAILURE);
                    
                
resourcebundle_class.c https://bitbucket.org/luobailiang/php-src.git | C | 450 lines
                    
119		intl_errors_set_code(NULL, INTL_DATA_ERROR_CODE(rb) TSRMLS_CC);
                    
120		spprintf(&pbuf, 0, "resourcebundle_ctor: Cannot load libICU resource "
                    
121				"'%s' without fallback from %s to %s",
                    
190		if (is_numeric) {
                    
191			spprintf( &pbuf, 0, "Cannot load resource element %d", meindex );
                    
192		} else {
                    
192		} else {
                    
193			spprintf( &pbuf, 0, "Cannot load resource element '%s'", mekey );
                    
194		}
                    
203		if (is_numeric) {
                    
204			spprintf( &pbuf, 0, "Cannot load element %d without fallback from to %s", meindex, locale );
                    
205		} else {
                    
205		} else {
                    
206			spprintf( &pbuf, 0, "Cannot load element '%s' without fallback from to %s", mekey, locale );
                    
207		}
                    
                
slabs.c https://bitbucket.org/luobailiang/memcached.git | C | 455 lines
                    
111        } else {
                    
112            fprintf(stderr, "Warning: Failed to allocate requested memory in"
                    
113                    " one large chunk.\nWill allocate in smaller chunks\n");
                    
127        if (settings.verbose > 1) {
                    
128            fprintf(stderr, "slab class %3d: chunk size %9u perslab %7u\n",
                    
129                    i, slabclass[i].size, slabclass[i].perslab);
                    
136    if (settings.verbose > 1) {
                    
137        fprintf(stderr, "slab class %3d: chunk size %9u perslab %7u\n",
                    
138                i, slabclass[i].size, slabclass[i].perslab);
                    
447    if (id < POWER_SMALLEST || id > power_largest) {
                    
448        fprintf(stderr, "Internal error! Invalid slab class\n");
                    
449        abort();
                    
                
 

Source

Language