public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Gerd Knorr <kraxel@bytesex.org>
To: Linus Torvalds <torvalds@transmeta.com>,
	Kernel List <linux-kernel@vger.kernel.org>
Subject: [patch] use print_dev_t() for sysfs dev file in videodev.c
Date: Mon, 29 Sep 2003 13:06:37 +0200	[thread overview]
Message-ID: <20030929110637.GA8500@bytesex.org> (raw)

Trivial one-liner, $subject says all.

please apply,

  Gerd

--- drivers/media/video/videodev.c.sysfs	2003-09-29 12:39:08.243219904 +0200
+++ drivers/media/video/videodev.c	2003-09-29 12:39:23.531895672 +0200
@@ -52,7 +52,7 @@
 {
 	struct video_device *vfd = container_of(cd, struct video_device, class_dev);
 	dev_t dev = MKDEV(VIDEO_MAJOR, vfd->minor);
-	return sprintf(buf,"%04x\n",old_encode_dev(dev));
+	return print_dev_t(buf,dev);
 }
 
 static CLASS_DEVICE_ATTR(name, S_IRUGO, show_name, NULL);


                 reply	other threads:[~2003-09-29 11:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030929110637.GA8500@bytesex.org \
    --to=kraxel@bytesex.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox