All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] confused about kernel printk behavior...
@ 2001-03-03  2:08 Randolph Chung
  2001-03-04 11:39 ` Alan Modra
  0 siblings, 1 reply; 2+ messages in thread
From: Randolph Chung @ 2001-03-03  2:08 UTC (permalink / raw)
  To: parisc-linux

I have a function like this in a char driver:

static ssize_t stabledev_read(struct file *file, char *buf, size_t count,
	loff_t *ppos)
{
	char *kbuf;
	unsigned int size = 0;

	printk("stabledev_read: pos = %ld, count = %d\n", *ppos, count);
	printk("stabledev_read: pos = %ld\n", *ppos);
	printk("stabledev_read: count = %d\n", count);
	/* ... */
}

for some reason, the output i get from the above is:
stabledev_read: pos = 20536, count = 0
stabledev_read: pos = 1
stabledev_read: count = 4096

why is that?  this is a 32-bit kernel built using xc-20010215

randolph
-- 
   @..@                                         http://www.TauSq.org/
  (----)
 ( >__< )
 ^^ ~~ ^^

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-03-04 11:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-03  2:08 [parisc-linux] confused about kernel printk behavior Randolph Chung
2001-03-04 11:39 ` Alan Modra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.