<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: dmesg with human readable timestamps	</title>
	<atom:link href="https://jmorano.moretrix.com/2012/03/dmesg-human-readable-timestamps/feed/" rel="self" type="application/rss+xml" />
	<link>https://jmorano.moretrix.com/2012/03/dmesg-human-readable-timestamps/</link>
	<description>Ramblings of an old-fashioned space cowboy</description>
	<lastBuildDate>Mon, 15 Sep 2014 14:46:54 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>
		By: Sandro		</title>
		<link>https://jmorano.moretrix.com/2012/03/dmesg-human-readable-timestamps/#comment-81891</link>

		<dc:creator><![CDATA[Sandro]]></dc:creator>
		<pubDate>Mon, 15 Sep 2014 14:46:54 +0000</pubDate>
		<guid isPermaLink="false">http://jmorano.moretrix.com/?p=684#comment-81891</guid>

					<description><![CDATA[Very good! well done.]]></description>
			<content:encoded><![CDATA[<p>Very good! well done.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Johnny Morano		</title>
		<link>https://jmorano.moretrix.com/2012/03/dmesg-human-readable-timestamps/#comment-36452</link>

		<dc:creator><![CDATA[Johnny Morano]]></dc:creator>
		<pubDate>Wed, 18 Jun 2014 09:15:44 +0000</pubDate>
		<guid isPermaLink="false">http://jmorano.moretrix.com/?p=684#comment-36452</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://jmorano.moretrix.com/2012/03/dmesg-human-readable-timestamps/#comment-35823&quot;&gt;BackSeat&lt;/a&gt;.

Yes ... but when I wrote this blog post (and code snippit), the option wasn&#039;t available ;-) At least not in the version of Debian Squeeze]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://jmorano.moretrix.com/2012/03/dmesg-human-readable-timestamps/#comment-35823">BackSeat</a>.</p>
<p>Yes &#8230; but when I wrote this blog post (and code snippit), the option wasn&#8217;t available 😉 At least not in the version of Debian Squeeze</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: BackSeat		</title>
		<link>https://jmorano.moretrix.com/2012/03/dmesg-human-readable-timestamps/#comment-35823</link>

		<dc:creator><![CDATA[BackSeat]]></dc:creator>
		<pubDate>Tue, 17 Jun 2014 08:31:02 +0000</pubDate>
		<guid isPermaLink="false">http://jmorano.moretrix.com/?p=684#comment-35823</guid>

					<description><![CDATA[Or just:

$ dmesg -T&#124;head
[Sun Jun  8 10:13:52 2014] Initializing cgroup subsys cpuset
[Sun Jun  8 10:13:52 2014] Initializing cgroup subsys cpu
[Sun Jun  8 10:13:52 2014] Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.57-3+deb7u2
[Sun Jun  8 10:13:52 2014] Command line: BOOT_IMAGE=/boot/vmlinuz-3.2.0-4-amd64 root=UUID=2c60bbd2-7b5d-4f30-a4f0-dcea4410b5f7 ro quiet
[Sun Jun  8 10:13:52 2014] BIOS-provided physical RAM map:
[Sun Jun  8 10:13:52 2014]  BIOS-e820: 0000000000000000 - 000000000009dc00 (usable)
[Sun Jun  8 10:13:52 2014]  BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
[Sun Jun  8 10:13:52 2014]  BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
[Sun Jun  8 10:13:52 2014]  BIOS-e820: 0000000000100000 - 00000000bafc0000 (usable)
[Sun Jun  8 10:13:52 2014]  BIOS-e820: 00000000bafc0000 - 00000000bafc3000 (ACPI NVS)]]></description>
			<content:encoded><![CDATA[<p>Or just:</p>
<p>$ dmesg -T|head<br />
[Sun Jun  8 10:13:52 2014] Initializing cgroup subsys cpuset<br />
[Sun Jun  8 10:13:52 2014] Initializing cgroup subsys cpu<br />
[Sun Jun  8 10:13:52 2014] Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.57-3+deb7u2<br />
[Sun Jun  8 10:13:52 2014] Command line: BOOT_IMAGE=/boot/vmlinuz-3.2.0-4-amd64 root=UUID=2c60bbd2-7b5d-4f30-a4f0-dcea4410b5f7 ro quiet<br />
[Sun Jun  8 10:13:52 2014] BIOS-provided physical RAM map:<br />
[Sun Jun  8 10:13:52 2014]  BIOS-e820: 0000000000000000 &#8211; 000000000009dc00 (usable)<br />
[Sun Jun  8 10:13:52 2014]  BIOS-e820: 000000000009f800 &#8211; 00000000000a0000 (reserved)<br />
[Sun Jun  8 10:13:52 2014]  BIOS-e820: 00000000000f0000 &#8211; 0000000000100000 (reserved)<br />
[Sun Jun  8 10:13:52 2014]  BIOS-e820: 0000000000100000 &#8211; 00000000bafc0000 (usable)<br />
[Sun Jun  8 10:13:52 2014]  BIOS-e820: 00000000bafc0000 &#8211; 00000000bafc3000 (ACPI NVS)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike		</title>
		<link>https://jmorano.moretrix.com/2012/03/dmesg-human-readable-timestamps/#comment-1534</link>

		<dc:creator><![CDATA[Mike]]></dc:creator>
		<pubDate>Wed, 25 Sep 2013 05:07:45 +0000</pubDate>
		<guid isPermaLink="false">http://jmorano.moretrix.com/?p=684#comment-1534</guid>

					<description><![CDATA[Hi Johnny,

Thank You for your reply. Well I am still getting error as below:

&lt;code&gt;
Use of uninitialized value in printf at ./dm-tes.pl line 7,  line 1.
&lt;/code&gt;]]></description>
			<content:encoded><![CDATA[<p>Hi Johnny,</p>
<p>Thank You for your reply. Well I am still getting error as below:</p>
<p><code><br />
Use of uninitialized value in printf at ./dm-tes.pl line 7,  line 1.<br />
</code></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike		</title>
		<link>https://jmorano.moretrix.com/2012/03/dmesg-human-readable-timestamps/#comment-1533</link>

		<dc:creator><![CDATA[Mike]]></dc:creator>
		<pubDate>Wed, 25 Sep 2013 05:02:48 +0000</pubDate>
		<guid isPermaLink="false">http://jmorano.moretrix.com/?p=684#comment-1533</guid>

					<description><![CDATA[Hi Johnny,

Thank You for your reply.  Well I am still getting error as below:

Use of uninitialized value in printf at ./dmesg.pl line 7,  line 1.]]></description>
			<content:encoded><![CDATA[<p>Hi Johnny,</p>
<p>Thank You for your reply.  Well I am still getting error as below:</p>
<p>Use of uninitialized value in printf at ./dmesg.pl line 7,  line 1.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Johnny Morano		</title>
		<link>https://jmorano.moretrix.com/2012/03/dmesg-human-readable-timestamps/#comment-1408</link>

		<dc:creator><![CDATA[Johnny Morano]]></dc:creator>
		<pubDate>Thu, 12 Sep 2013 07:03:48 +0000</pubDate>
		<guid isPermaLink="false">http://jmorano.moretrix.com/?p=684#comment-1408</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://jmorano.moretrix.com/2012/03/dmesg-human-readable-timestamps/#comment-1404&quot;&gt;Mike&lt;/a&gt;.

Hi Mike,

I&#039;ve updated the code snippit, could you test it again? On my Debian it actually works like a charm]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://jmorano.moretrix.com/2012/03/dmesg-human-readable-timestamps/#comment-1404">Mike</a>.</p>
<p>Hi Mike,</p>
<p>I&#8217;ve updated the code snippit, could you test it again? On my Debian it actually works like a charm</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike		</title>
		<link>https://jmorano.moretrix.com/2012/03/dmesg-human-readable-timestamps/#comment-1404</link>

		<dc:creator><![CDATA[Mike]]></dc:creator>
		<pubDate>Thu, 12 Sep 2013 01:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://jmorano.moretrix.com/?p=684#comment-1404</guid>

					<description><![CDATA[Hi 

I tried this script on Centos 5.8 and it didn&#039;t worked. It gave error as below with all dmesg line.

Use of uninitialized value in printf at ./dmesg.pl line 7,  line 11623.

Here is the dmesg script codes if I am missing somthing here.

#!/usr/bin/perl -wn
use strict;

foreach my $line () {
        my ($uptime) = (do { local @ARGV=&#039;/proc/uptime&#039;;} =~ /^(\d+)\./);
        $line=~/^\[\s*(\d+)\.\d+\](.+)/;
        printf &quot;[%s]%s\n&quot;, scalar localtime(time - $uptime + $1), $2;
}]]></description>
			<content:encoded><![CDATA[<p>Hi </p>
<p>I tried this script on Centos 5.8 and it didn&#8217;t worked. It gave error as below with all dmesg line.</p>
<p>Use of uninitialized value in printf at ./dmesg.pl line 7,  line 11623.</p>
<p>Here is the dmesg script codes if I am missing somthing here.</p>
<p>#!/usr/bin/perl -wn<br />
use strict;</p>
<p>foreach my $line () {<br />
        my ($uptime) = (do { local @ARGV=&#8217;/proc/uptime&#8217;;} =~ /^(\d+)\./);<br />
        $line=~/^\[\s*(\d+)\.\d+\](.+)/;<br />
        printf &#8220;[%s]%s\n&#8221;, scalar localtime(time &#8211; $uptime + $1), $2;<br />
}</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Gaspar Fernandez		</title>
		<link>https://jmorano.moretrix.com/2012/03/dmesg-human-readable-timestamps/#comment-729</link>

		<dc:creator><![CDATA[Gaspar Fernandez]]></dc:creator>
		<pubDate>Sun, 10 Feb 2013 09:01:29 +0000</pubDate>
		<guid isPermaLink="false">http://jmorano.moretrix.com/?p=684#comment-729</guid>

					<description><![CDATA[Good idea!
Also in bash:
$ base=$(cat /proc/uptime &#124; cut -d &#039;.&#039; -f1); seconds=`date +%s`; dmesg &#124; sed &#039;s/^\[\(.*\)\..*\]\(.*\)$/\1\n\2/&#039; &#124; while read first; do read second; first=`date +&quot;%d/%m/%Y %H:%M:%S&quot; --date=&quot;@$(($seconds - $base + $first))&quot;`; echo &quot;[$first] $second&quot;; done]]></description>
			<content:encoded><![CDATA[<p>Good idea!<br />
Also in bash:<br />
$ base=$(cat /proc/uptime | cut -d &#8216;.&#8217; -f1); seconds=`date +%s`; dmesg | sed &#8216;s/^\[\(.*\)\..*\]\(.*\)$/\1\n\2/&#8217; | while read first; do read second; first=`date +&#8221;%d/%m/%Y %H:%M:%S&#8221; &#8211;date=&#8221;@$(($seconds &#8211; $base + $first))&#8221;`; echo &#8220;[$first] $second&#8221;; done</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
