linux/drivers/media
Mauro Carvalho Chehab 96292c89cf [media] pvrusb2: don't break long lines
Due to the 80-cols restrictions, and latter due to checkpatch
warnings, several strings were broken into multiple lines. This
is not considered a good practice anymore, as it makes harder
to grep for strings at the source code.

As we're right now fixing other drivers due to KERN_CONT, we need
to be able to identify what printk strings don't end with a "\n".
It is a way easier to detect those if we don't break long lines.

So, join those continuation lines.

The patch was generated via the script below, and manually
adjusted if needed.

</script>
use Text::Tabs;
while (<>) {
	if ($next ne "") {
		$c=$_;
		if ($c =~ /^\s+\"(.*)/) {
			$c2=$1;
			$next =~ s/\"\n$//;
			$n = expand($next);
			$funpos = index($n, '(');
			$pos = index($c2, '",');
			if ($funpos && $pos > 0) {
				$s1 = substr $c2, 0, $pos + 2;
				$s2 = ' ' x ($funpos + 1) . substr $c2, $pos + 2;
				$s2 =~ s/^\s+//;

				$s2 = ' ' x ($funpos + 1) . $s2 if ($s2 ne "");

				print unexpand("$next$s1\n");
				print unexpand("$s2\n") if ($s2 ne "");
			} else {
				print "$next$c2\n";
			}
			$next="";
			next;
		} else {
			print $next;
		}
		$next="";
	} else {
		if (m/\"$/) {
			if (!m/\\n\"$/) {
				$next=$_;
				next;
			}
		}
	}
	print $_;
}
</script>

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-10-21 09:51:20 -02:00
..
common [media] b2c2: don't break long lines 2016-10-21 08:51:32 -02:00
dvb-core [media] dvb-core: move dvb_filter out of the DVB core 2016-10-21 08:44:08 -02:00
dvb-frontends [media] nxt6000: use pr_foo() macros instead of printk() 2016-10-21 08:51:32 -02:00
firewire [media] dvb: modify core to implement interfaces/entities at MC new gen 2016-01-11 12:18:52 -02:00
i2c [media] soc_camera: don't break long lines 2016-10-21 08:51:50 -02:00
mmc
pci [media] tw68: don't break long lines 2016-10-21 09:29:44 -02:00
platform [media] ti-vpe: don't break long lines 2016-10-21 09:35:36 -02:00
radio [media] wl128x: don't break long lines 2016-10-21 09:37:45 -02:00
rc [media] imon: use %*ph to do small hexa dumps 2016-10-21 08:51:27 -02:00
spi [media] gs1662: make checkpatch happy 2016-09-19 14:39:49 -03:00
tuners [media] mt20xx: use %*ph to do small hexa dumps 2016-10-21 08:51:28 -02:00
usb [media] pvrusb2: don't break long lines 2016-10-21 09:51:20 -02:00
v4l2-core [media] tuner-core: use %&ph for small buffer dumps 2016-10-21 08:40:35 -02:00
cec-edid.c [media] cec-edid: check for IEEE identifier 2016-08-22 14:04:51 -03:00
Kconfig [media] media Kconfig: improve the spi integration 2016-09-19 14:37:05 -03:00
Makefile [media] Add GS1662 driver, a video serializer 2016-09-19 14:36:24 -03:00
media-device.c [media] media: Add flags to tell whether to take graph mutex for an IOCTL 2016-09-22 10:28:40 -03:00
media-devnode.c [media] media: fix media devnode ioctl/syscall and unregister race 2016-06-15 17:59:28 -03:00
media-entity.c [media] media: Move media_device link_notify operation to an ops structure 2016-09-09 11:20:09 -03:00