drivers:base:power:trace.c Add "UTC" Coordinated Universal Time to the printk.
Subsystems (4)
PATCH 1/1 drivers:base:power:trace.c Add "UTC" Coordinated Universal Time to the printk.
From: "Justin P. Mattock" <[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11
after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11
--- drivers/base/power/trace.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/base/power/trace.c +1 -1
@@ -112,7 +112,7 @@ static unsigned int read_magic_time(void)unsigned int val;get_rtc_time (&time); -pr_info ("Time: %2d:%02d:%02d Date: %02d/%02d/%02d\n" , +pr_info ("Time: %2d:%02d:%02d UTC Date: %02d/%02d/%02d\n" , time.tm_hour, time.tm_min, time.tm_sec, time.tm_mon +1 , time.tm_mday, time.tm_year %100 ); val = time.tm_year;/* 100 years */
Signature · 1 line
1.7.5.2
Hi,
Quoted 6 lines · Justin P. Mattock
From: "Justin P. Mattock" <[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!
Quoted 7 lines
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11Signed-off-by Justin P. Mattock <[email protected]>
I suspect the goal is to mark messages printed by the PM trace code so that they can be easily distinguished from messages from other sources to avoid confusion. Why do you think it's a good idea to use the "UTC" string for this purpose? The time printed in those messages need not be UTC.
It would be better to simply print "RTC time: ..., date: ..." IMO.
Thanks,
Rafael
Quoted 18 lines
--- drivers/base/power/trace.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/base/power/trace.c +1
-1@@ -112,7 +112,7 @@ static unsigned int read_magic_time(void)unsigned int val;get_rtc_time (&time); -pr_info ("Time: %2d:%02d:%02d Date: %02d/%02d/%02d\n" , +pr_info ("Time: %2d:%02d:%02d UTC Date: %02d/%02d/%02d\n" , time.tm_hour, time.tm_min, time.tm_sec, time.tm_mon +1 , time.tm_mday, time.tm_year %100 ); val = time.tm_year;/* 100 years */
Hi,
Quoted 6 lines · Justin P. Mattock
From: "Justin P. Mattock" <[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!
Quoted 7 lines
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11Signed-off-by Justin P. Mattock <[email protected]>
I suspect the goal is to mark messages printed by the PM trace code so that they can be easily distinguished from messages from other sources to avoid confusion. Why do you think it's a good idea to use the "UTC" string for this purpose? The time printed in those messages need not be UTC.
It would be better to simply print "RTC time: ..., date: ..." IMO.
Thanks,
Rafael
Quoted 18 lines
--- drivers/base/power/trace.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/base/power/trace.c +1
-1@@ -112,7 +112,7 @@ static unsigned int read_magic_time(void)unsigned int val;get_rtc_time (&time); -pr_info ("Time: %2d:%02d:%02d Date: %02d/%02d/%02d\n" , +pr_info ("Time: %2d:%02d:%02d UTC Date: %02d/%02d/%02d\n" , time.tm_hour, time.tm_min, time.tm_sec, time.tm_mon +1 , time.tm_mday, time.tm_year %100 ); val = time.tm_year;/* 100 years */
Quoted 22 lines · Rafael J. Wysocki
Hi,
Quoted 6 lines · Justin P. Mattock
From: "Justin P. Mattock"<[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!Quoted 7 lines
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11Signed-off-by Justin P. Mattock<[email protected]>I suspect the goal is to mark messages printed by the PM trace code so that they can be easily distinguished from messages from other sources to avoid confusion. Why do you think it's a good idea to use the "UTC" string for this purpose? The time printed in those messages need not be UTC.
Quoted 5 lines
It would be better to simply print "RTC time: ..., date: ..." IMO.
Thanks,
Rafael
well.. if thats better, then thats better.. over here(people that dont know what RTC time is) would not get so confused with a simple UTC or PDT or whatever the time zone is but if RTC is bettr, then its better.
Quoted 21 lines
Quoted 19 lines
--- drivers/base/power/trace.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/base/power/trace.c +1
-1@@ -112,7 +112,7 @@ static unsigned int read_magic_time(void)unsigned int val;get_rtc_time (&time); -pr_info ("Time: %2d:%02d:%02d Date: %02d/%02d/%02d\n" , +pr_info ("Time: %2d:%02d:%02d UTC Date: %02d/%02d/%02d\n" , time.tm_hour, time.tm_min, time.tm_sec, time.tm_mon +1 , time.tm_mday, time.tm_year %100 ); val = time.tm_year;/* 100 years */
Quoted 22 lines · Rafael J. Wysocki
Hi,
Quoted 6 lines · Justin P. Mattock
From: "Justin P. Mattock"<[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!Quoted 7 lines
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11Signed-off-by Justin P. Mattock<[email protected]>I suspect the goal is to mark messages printed by the PM trace code so that they can be easily distinguished from messages from other sources to avoid confusion. Why do you think it's a good idea to use the "UTC" string for this purpose? The time printed in those messages need not be UTC.
Quoted 5 lines
It would be better to simply print "RTC time: ..., date: ..." IMO.
Thanks,
Rafael
well.. if thats better, then thats better.. over here(people that dont know what RTC time is) would not get so confused with a simple UTC or PDT or whatever the time zone is but if RTC is bettr, then its better.
Quoted 21 lines
Quoted 19 lines
--- drivers/base/power/trace.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/base/power/trace.c +1
-1@@ -112,7 +112,7 @@ static unsigned int read_magic_time(void)unsigned int val;get_rtc_time (&time); -pr_info ("Time: %2d:%02d:%02d Date: %02d/%02d/%02d\n" , +pr_info ("Time: %2d:%02d:%02d UTC Date: %02d/%02d/%02d\n" , time.tm_hour, time.tm_min, time.tm_sec, time.tm_mon +1 , time.tm_mday, time.tm_year %100 ); val = time.tm_year;/* 100 years */
Quoted 25 lines · Justin P. Mattock
Quoted 24 lines · Rafael J. Wysocki
Hi,
Quoted 6 lines · Justin P. Mattock
From: "Justin P. Mattock"<[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!Quoted 7 lines
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11Signed-off-by Justin P. Mattock<[email protected]>I suspect the goal is to mark messages printed by the PM trace code so that they can be easily distinguished from messages from other sources to avoid confusion. Why do you think it's a good idea to use the "UTC" string for this purpose? The time printed in those messages need not be UTC.
It would be better to simply print "RTC time: ..., date: ..." IMO.
Quoted 7 lines
Quoted 3 lines
Thanks,
Rafaelwell.. if thats better, then thats better.. over here(people that dont know what RTC time is) would not get so confused with a simple UTC or PDT or whatever the time zone is but if RTC is bettr, then its better.
My point is we don't know this time is always UTC, so we rather shouldn't label it as UTC unconditionally, should we?
Rafael
Quoted 25 lines · Justin P. Mattock
Quoted 24 lines · Rafael J. Wysocki
Hi,
Quoted 6 lines · Justin P. Mattock
From: "Justin P. Mattock"<[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!Quoted 7 lines
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11Signed-off-by Justin P. Mattock<[email protected]>I suspect the goal is to mark messages printed by the PM trace code so that they can be easily distinguished from messages from other sources to avoid confusion. Why do you think it's a good idea to use the "UTC" string for this purpose? The time printed in those messages need not be UTC.
It would be better to simply print "RTC time: ..., date: ..." IMO.
Quoted 7 lines
Quoted 3 lines
Thanks,
Rafaelwell.. if thats better, then thats better.. over here(people that dont know what RTC time is) would not get so confused with a simple UTC or PDT or whatever the time zone is but if RTC is bettr, then its better.
My point is we don't know this time is always UTC, so we rather shouldn't label it as UTC unconditionally, should we?
Rafael
Quoted 30 lines · Rafael J. Wysocki
Quoted 29 lines · Justin P. Mattock
Quoted 27 lines · Rafael J. Wysocki
Hi,
Quoted 6 lines · Justin P. Mattock
From: "Justin P. Mattock"<[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!Quoted 7 lines
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11Signed-off-by Justin P. Mattock<[email protected]>I suspect the goal is to mark messages printed by the PM trace code so that they can be easily distinguished from messages from other sources to avoid confusion. Why do you think it's a good idea to use the "UTC" string for this purpose? The time printed in those messages need not be UTC.
It would be better to simply print "RTC time: ..., date: ..." IMO.
Thanks,
Rafael
Quoted 9 lines
Quoted 3 lines
well.. if thats better, then thats better.. over here(people that dont know what RTC time is) would not get so confused with a simple UTC or PDT or whatever the time zone is but if RTC is bettr, then its better.
My point is we don't know this time is always UTC, so we rather shouldn't label it as UTC unconditionally, should we?
Rafael
sounds good to me!!
Quoted 30 lines · Rafael J. Wysocki
Quoted 29 lines · Justin P. Mattock
Quoted 27 lines · Rafael J. Wysocki
Hi,
Quoted 6 lines · Justin P. Mattock
From: "Justin P. Mattock"<[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!Quoted 7 lines
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11Signed-off-by Justin P. Mattock<[email protected]>I suspect the goal is to mark messages printed by the PM trace code so that they can be easily distinguished from messages from other sources to avoid confusion. Why do you think it's a good idea to use the "UTC" string for this purpose? The time printed in those messages need not be UTC.
It would be better to simply print "RTC time: ..., date: ..." IMO.
Thanks,
Rafael
Quoted 9 lines
Quoted 3 lines
well.. if thats better, then thats better.. over here(people that dont know what RTC time is) would not get so confused with a simple UTC or PDT or whatever the time zone is but if RTC is bettr, then its better.
My point is we don't know this time is always UTC, so we rather shouldn't label it as UTC unconditionally, should we?
Rafael
sounds good to me!!
Quoted 35 lines · Justin P. Mattock
Quoted 34 lines · Rafael J. Wysocki
Quoted 32 lines · Justin P. Mattock
Quoted 22 lines · Rafael J. Wysocki
Hi,
Quoted 6 lines · Justin P. Mattock
From: "Justin P. Mattock"<[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!Quoted 7 lines
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11Signed-off-by Justin P. Mattock<[email protected]>I suspect the goal is to mark messages printed by the PM trace code so that they can be easily distinguished from messages from other sources to avoid confusion. Why do you think it's a good idea to use the "UTC" string for this purpose? The time printed in those messages need not be UTC.
Quoted 5 lines
It would be better to simply print "RTC time: ..., date: ..." IMO.
Thanks,
Rafaelwell.. if thats better, then thats better.. over here(people that dont know what RTC time is) would not get so confused with a simple UTC or PDT or whatever the time zone is but if RTC is bettr, then its better.
Quoted 7 lines
Quoted 5 lines
My point is we don't know this time is always UTC, so we rather shouldn't label it as UTC unconditionally, should we?
Rafael
sounds good to me!!
I'm not sure what you mean?
Quoted 35 lines · Justin P. Mattock
Quoted 34 lines · Rafael J. Wysocki
Quoted 32 lines · Justin P. Mattock
Quoted 22 lines · Rafael J. Wysocki
Hi,
Quoted 6 lines · Justin P. Mattock
From: "Justin P. Mattock"<[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!Quoted 7 lines
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11Signed-off-by Justin P. Mattock<[email protected]>I suspect the goal is to mark messages printed by the PM trace code so that they can be easily distinguished from messages from other sources to avoid confusion. Why do you think it's a good idea to use the "UTC" string for this purpose? The time printed in those messages need not be UTC.
Quoted 5 lines
It would be better to simply print "RTC time: ..., date: ..." IMO.
Thanks,
Rafaelwell.. if thats better, then thats better.. over here(people that dont know what RTC time is) would not get so confused with a simple UTC or PDT or whatever the time zone is but if RTC is bettr, then its better.
Quoted 7 lines
Quoted 5 lines
My point is we don't know this time is always UTC, so we rather shouldn't label it as UTC unconditionally, should we?
Rafael
sounds good to me!!
I'm not sure what you mean?
Quoted 39 lines · Rafael J. Wysocki
Quoted 38 lines · Justin P. Mattock
Quoted 37 lines · Rafael J. Wysocki
Quoted 25 lines · Justin P. Mattock
Quoted 24 lines · Rafael J. Wysocki
Hi,
Quoted 6 lines · Justin P. Mattock
From: "Justin P. Mattock"<[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!Quoted 7 lines
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11Signed-off-by Justin P. Mattock<[email protected]>I suspect the goal is to mark messages printed by the PM trace code so that they can be easily distinguished from messages from other sources to avoid confusion. Why do you think it's a good idea to use the "UTC" string for this purpose? The time printed in those messages need not be UTC.
It would be better to simply print "RTC time: ..., date: ..." IMO.
Quoted 7 lines
Quoted 3 lines
Thanks,
Rafaelwell.. if thats better, then thats better.. over here(people that dont know what RTC time is) would not get so confused with a simple UTC or PDT or whatever the time zone is but if RTC is bettr, then its better.
My point is we don't know this time is always UTC, so we rather shouldn't label it as UTC unconditionally, should we?
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Rafael
sounds good to me!!
I'm not sure what you mean?
with what you are saying "RTC" if anything.. rather than "UTC"
Quoted 39 lines · Rafael J. Wysocki
Quoted 38 lines · Justin P. Mattock
Quoted 37 lines · Rafael J. Wysocki
Quoted 25 lines · Justin P. Mattock
Quoted 24 lines · Rafael J. Wysocki
Hi,
Quoted 6 lines · Justin P. Mattock
From: "Justin P. Mattock"<[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!Quoted 7 lines
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11Signed-off-by Justin P. Mattock<[email protected]>I suspect the goal is to mark messages printed by the PM trace code so that they can be easily distinguished from messages from other sources to avoid confusion. Why do you think it's a good idea to use the "UTC" string for this purpose? The time printed in those messages need not be UTC.
It would be better to simply print "RTC time: ..., date: ..." IMO.
Quoted 7 lines
Quoted 3 lines
Thanks,
Rafaelwell.. if thats better, then thats better.. over here(people that dont know what RTC time is) would not get so confused with a simple UTC or PDT or whatever the time zone is but if RTC is bettr, then its better.
My point is we don't know this time is always UTC, so we rather shouldn't label it as UTC unconditionally, should we?
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Rafael
sounds good to me!!
I'm not sure what you mean?
with what you are saying "RTC" if anything.. rather than "UTC"
Quoted 43 lines · Justin P. Mattock
Quoted 42 lines · Rafael J. Wysocki
Quoted 41 lines · Justin P. Mattock
Quoted 39 lines · Rafael J. Wysocki
Quoted 25 lines · Justin P. Mattock
Quoted 24 lines · Rafael J. Wysocki
Hi,
Quoted 6 lines · Justin P. Mattock
From: "Justin P. Mattock"<[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!Quoted 7 lines
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11Signed-off-by Justin P. Mattock<[email protected]>I suspect the goal is to mark messages printed by the PM trace code so that they can be easily distinguished from messages from other sources to avoid confusion. Why do you think it's a good idea to use the "UTC" string for this purpose? The time printed in those messages need not be UTC.
It would be better to simply print "RTC time: ..., date: ..." IMO.
Quoted 7 lines
Quoted 3 lines
Thanks,
Rafaelwell.. if thats better, then thats better.. over here(people that dont know what RTC time is) would not get so confused with a simple UTC or PDT or whatever the time zone is but if RTC is bettr, then its better.
My point is we don't know this time is always UTC, so we rather shouldn't label it as UTC unconditionally, should we?
Rafael
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
sounds good to me!!
I'm not sure what you mean?
with what you are saying "RTC" if anything.. rather than "UTC"
So, it looks like you'd like the appended patch to be appiled?
Rafael
---
From: Rafael J. Wysocki <[email protected]>
Subject: PM: Add "RTC" to PM trace time stamps to avoid confusion
Some users are apparently confused by dmesg output from read_magic_time(), which looks like "real" time and date. Add the "RTC" string to time stamps printed by read_magic_time() to avoid that confusion.
--- drivers/base/power/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/base/power/trace.c +1 -1
@@ -112,7 +112,7 @@ static unsigned int read_magic_time(voidunsigned int val;get_rtc_time (&time); -pr_info ("Time: %2d:%02d:%02d Date: %02d/%02d/%02d\n" , +pr_info ("RTC time: %2d:%02d:%02d, date: %02d/%02d/%02d\n" , time.tm_hour, time.tm_min, time.tm_sec, time.tm_mon +1 , time.tm_mday, time.tm_year %100 ); val = time.tm_year;/* 100 years */
Quoted 43 lines · Justin P. Mattock
Quoted 42 lines · Rafael J. Wysocki
Quoted 41 lines · Justin P. Mattock
Quoted 39 lines · Rafael J. Wysocki
Quoted 25 lines · Justin P. Mattock
Quoted 24 lines · Rafael J. Wysocki
Hi,
Quoted 6 lines · Justin P. Mattock
From: "Justin P. Mattock"<[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!Quoted 7 lines
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11Signed-off-by Justin P. Mattock<[email protected]>I suspect the goal is to mark messages printed by the PM trace code so that they can be easily distinguished from messages from other sources to avoid confusion. Why do you think it's a good idea to use the "UTC" string for this purpose? The time printed in those messages need not be UTC.
It would be better to simply print "RTC time: ..., date: ..." IMO.
Quoted 7 lines
Quoted 3 lines
Thanks,
Rafaelwell.. if thats better, then thats better.. over here(people that dont know what RTC time is) would not get so confused with a simple UTC or PDT or whatever the time zone is but if RTC is bettr, then its better.
My point is we don't know this time is always UTC, so we rather shouldn't label it as UTC unconditionally, should we?
Rafael
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
sounds good to me!!
I'm not sure what you mean?
with what you are saying "RTC" if anything.. rather than "UTC"
So, it looks like you'd like the appended patch to be appiled?
Rafael
---
From: Rafael J. Wysocki <[email protected]>
Subject: PM: Add "RTC" to PM trace time stamps to avoid confusion
Some users are apparently confused by dmesg output from read_magic_time(), which looks like "real" time and date. Add the "RTC" string to time stamps printed by read_magic_time() to avoid that confusion.
--- drivers/base/power/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/base/power/trace.c +1 -1
@@ -112,7 +112,7 @@ static unsigned int read_magic_time(voidunsigned int val;get_rtc_time (&time); -pr_info ("Time: %2d:%02d:%02d Date: %02d/%02d/%02d\n" , +pr_info ("RTC time: %2d:%02d:%02d, date: %02d/%02d/%02d\n" , time.tm_hour, time.tm_min, time.tm_sec, time.tm_mon +1 , time.tm_mday, time.tm_year %100 ); val = time.tm_year;/* 100 years */
Quoted 46 lines · Rafael J. Wysocki
Quoted 45 lines · Justin P. Mattock
Quoted 44 lines · Rafael J. Wysocki
Quoted 42 lines · Justin P. Mattock
Quoted 30 lines · Rafael J. Wysocki
Quoted 29 lines · Justin P. Mattock
Quoted 27 lines · Rafael J. Wysocki
Hi,
Quoted 6 lines · Justin P. Mattock
From: "Justin P. Mattock"<[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!Quoted 7 lines
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11Signed-off-by Justin P. Mattock<[email protected]>I suspect the goal is to mark messages printed by the PM trace code so that they can be easily distinguished from messages from other sources to avoid confusion. Why do you think it's a good idea to use the "UTC" string for this purpose? The time printed in those messages need not be UTC.
It would be better to simply print "RTC time: ..., date: ..." IMO.
Thanks,
RafaelQuoted 9 lines
Quoted 3 lines
well.. if thats better, then thats better.. over here(people that dont know what RTC time is) would not get so confused with a simple UTC or PDT or whatever the time zone is but if RTC is bettr, then its better.
My point is we don't know this time is always UTC, so we rather shouldn't label it as UTC unconditionally, should we?
Rafael
sounds good to me!!
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
I'm not sure what you mean?
with what you are saying "RTC" if anything.. rather than "UTC"
So, it looks like you'd like the appended patch to be appiled?
Rafael
whatever works best with you guys... I just tripped out on that, and created what I had sent out..
Quoted 22 lines
---
From: Rafael J. Wysocki<[email protected]>
Subject: PM: Add "RTC" to PM trace time stamps to avoid confusionSome users are apparently confused by dmesg output from
read_magic_time(), which looks like "real" time and date. Add the "RTC" string to time stamps printed byread_magic_time()to avoid that confusion.Reported-by Justin P. Mattock<[email protected]>Signed-off-by Rafael J. Wysocki<[email protected]>--- drivers/base/power/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Index:
linux-2.6/drivers/base/power/trace.c
===================================================================
drivers/base/power/trace.c static unsigned int read_magic_time(void · line 118
Quoted 8 lines
drivers/base/power/trace.c +1
-1@@ -112,7 +112,7 @@ static unsigned int read_magic_time(voidunsigned int val;get_rtc_time (&time); -pr_info ("Time: %2d:%02d:%02d Date: %02d/%02d/%02d\n" , +pr_info ("RTC time: %2d:%02d:%02d, date: %02d/%02d/%02d\n" , time.tm_hour, time.tm_min, time.tm_sec, time.tm_mon +1 , time.tm_mday, time.tm_year %100 ); val = time.tm_year;/* 100 years */
Justin P. Mattock
Quoted 46 lines · Rafael J. Wysocki
Quoted 45 lines · Justin P. Mattock
Quoted 44 lines · Rafael J. Wysocki
Quoted 42 lines · Justin P. Mattock
Quoted 30 lines · Rafael J. Wysocki
Quoted 29 lines · Justin P. Mattock
Quoted 27 lines · Rafael J. Wysocki
Hi,
Quoted 6 lines · Justin P. Mattock
From: "Justin P. Mattock"<[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!Quoted 7 lines
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11Signed-off-by Justin P. Mattock<[email protected]>I suspect the goal is to mark messages printed by the PM trace code so that they can be easily distinguished from messages from other sources to avoid confusion. Why do you think it's a good idea to use the "UTC" string for this purpose? The time printed in those messages need not be UTC.
It would be better to simply print "RTC time: ..., date: ..." IMO.
Thanks,
RafaelQuoted 9 lines
Quoted 3 lines
well.. if thats better, then thats better.. over here(people that dont know what RTC time is) would not get so confused with a simple UTC or PDT or whatever the time zone is but if RTC is bettr, then its better.
My point is we don't know this time is always UTC, so we rather shouldn't label it as UTC unconditionally, should we?
Rafael
sounds good to me!!
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
I'm not sure what you mean?
with what you are saying "RTC" if anything.. rather than "UTC"
So, it looks like you'd like the appended patch to be appiled?
Rafael
whatever works best with you guys... I just tripped out on that, and created what I had sent out..
Quoted 22 lines
---
From: Rafael J. Wysocki<[email protected]>
Subject: PM: Add "RTC" to PM trace time stamps to avoid confusionSome users are apparently confused by dmesg output from
read_magic_time(), which looks like "real" time and date. Add the "RTC" string to time stamps printed byread_magic_time()to avoid that confusion.Reported-by Justin P. Mattock<[email protected]>Signed-off-by Rafael J. Wysocki<[email protected]>--- drivers/base/power/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Index:
linux-2.6/drivers/base/power/trace.c
===================================================================
drivers/base/power/trace.c static unsigned int read_magic_time(void · line 118
Quoted 8 lines
drivers/base/power/trace.c +1
-1@@ -112,7 +112,7 @@ static unsigned int read_magic_time(voidunsigned int val;get_rtc_time (&time); -pr_info ("Time: %2d:%02d:%02d Date: %02d/%02d/%02d\n" , +pr_info ("RTC time: %2d:%02d:%02d, date: %02d/%02d/%02d\n" , time.tm_hour, time.tm_min, time.tm_sec, time.tm_mon +1 , time.tm_mday, time.tm_year %100 ); val = time.tm_year;/* 100 years */
Justin P. Mattock
Quoted 50 lines · Justin P. Mattock
Quoted 49 lines · Rafael J. Wysocki
Quoted 48 lines · Justin P. Mattock
Quoted 46 lines · Rafael J. Wysocki
Quoted 35 lines · Justin P. Mattock
Quoted 34 lines · Rafael J. Wysocki
Quoted 32 lines · Justin P. Mattock
Quoted 22 lines · Rafael J. Wysocki
Hi,
Quoted 6 lines · Justin P. Mattock
From: "Justin P. Mattock"<[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!Quoted 7 lines
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11Signed-off-by Justin P. Mattock<[email protected]>I suspect the goal is to mark messages printed by the PM trace code so that they can be easily distinguished from messages from other sources to avoid confusion. Why do you think it's a good idea to use the "UTC" string for this purpose? The time printed in those messages need not be UTC.
Quoted 5 lines
It would be better to simply print "RTC time: ..., date: ..." IMO.
Thanks,
Rafaelwell.. if thats better, then thats better.. over here(people that dont know what RTC time is) would not get so confused with a simple UTC or PDT or whatever the time zone is but if RTC is bettr, then its better.
Quoted 7 lines
Quoted 5 lines
My point is we don't know this time is always UTC, so we rather shouldn't label it as UTC unconditionally, should we?
Rafael
sounds good to me!!
I'm not sure what you mean?
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
with what you are saying "RTC" if anything.. rather than "UTC"
So, it looks like you'd like the appended patch to be appiled?
Rafael
whatever works best with you guys...
OK, I'll queue up the one below for 3.1, then.
Quoted 36 lines
I just tripped out on that, and created what I had sent out..
Quoted 22 lines
---
From: Rafael J. Wysocki<[email protected]>
Subject: PM: Add "RTC" to PM trace time stamps to avoid confusionSome users are apparently confused by dmesg output from
read_magic_time(), which looks like "real" time and date. Add the "RTC" string to time stamps printed byread_magic_time()to avoid that confusion.Reported-by Justin P. Mattock<[email protected]>Signed-off-by Rafael J. Wysocki<[email protected]>--- drivers/base/power/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Index:
linux-2.6/drivers/base/power/trace.c
===================================================================drivers/base/power/trace.c static unsigned int read_magic_time(void · line 118
Quoted 8 lines
drivers/base/power/trace.c +1
-1@@ -112,7 +112,7 @@ static unsigned int read_magic_time(voidunsigned int val;get_rtc_time (&time); -pr_info ("Time: %2d:%02d:%02d Date: %02d/%02d/%02d\n" , +pr_info ("RTC time: %2d:%02d:%02d, date: %02d/%02d/%02d\n" , time.tm_hour, time.tm_min, time.tm_sec, time.tm_mon +1 , time.tm_mday, time.tm_year %100 ); val = time.tm_year;/* 100 years */ Justin P. Mattock
Quoted 50 lines · Justin P. Mattock
Quoted 49 lines · Rafael J. Wysocki
Quoted 48 lines · Justin P. Mattock
Quoted 46 lines · Rafael J. Wysocki
Quoted 35 lines · Justin P. Mattock
Quoted 34 lines · Rafael J. Wysocki
Quoted 32 lines · Justin P. Mattock
Quoted 22 lines · Rafael J. Wysocki
Hi,
Quoted 6 lines · Justin P. Mattock
From: "Justin P. Mattock"<[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!Quoted 7 lines
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11Signed-off-by Justin P. Mattock<[email protected]>I suspect the goal is to mark messages printed by the PM trace code so that they can be easily distinguished from messages from other sources to avoid confusion. Why do you think it's a good idea to use the "UTC" string for this purpose? The time printed in those messages need not be UTC.
Quoted 5 lines
It would be better to simply print "RTC time: ..., date: ..." IMO.
Thanks,
Rafaelwell.. if thats better, then thats better.. over here(people that dont know what RTC time is) would not get so confused with a simple UTC or PDT or whatever the time zone is but if RTC is bettr, then its better.
Quoted 7 lines
Quoted 5 lines
My point is we don't know this time is always UTC, so we rather shouldn't label it as UTC unconditionally, should we?
Rafael
sounds good to me!!
I'm not sure what you mean?
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
with what you are saying "RTC" if anything.. rather than "UTC"
So, it looks like you'd like the appended patch to be appiled?
Rafael
whatever works best with you guys...
OK, I'll queue up the one below for 3.1, then.
Quoted 36 lines
I just tripped out on that, and created what I had sent out..
Quoted 22 lines
---
From: Rafael J. Wysocki<[email protected]>
Subject: PM: Add "RTC" to PM trace time stamps to avoid confusionSome users are apparently confused by dmesg output from
read_magic_time(), which looks like "real" time and date. Add the "RTC" string to time stamps printed byread_magic_time()to avoid that confusion.Reported-by Justin P. Mattock<[email protected]>Signed-off-by Rafael J. Wysocki<[email protected]>--- drivers/base/power/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Index:
linux-2.6/drivers/base/power/trace.c
===================================================================drivers/base/power/trace.c static unsigned int read_magic_time(void · line 118
Quoted 8 lines
drivers/base/power/trace.c +1
-1@@ -112,7 +112,7 @@ static unsigned int read_magic_time(voidunsigned int val;get_rtc_time (&time); -pr_info ("Time: %2d:%02d:%02d Date: %02d/%02d/%02d\n" , +pr_info ("RTC time: %2d:%02d:%02d, date: %02d/%02d/%02d\n" , time.tm_hour, time.tm_min, time.tm_sec, time.tm_mon +1 , time.tm_mday, time.tm_year %100 ); val = time.tm_year;/* 100 years */ Justin P. Mattock
Quoted 53 lines · Rafael J. Wysocki
Quoted 52 lines · Justin P. Mattock
Quoted 51 lines · Rafael J. Wysocki
Quoted 49 lines · Justin P. Mattock
Quoted 39 lines · Rafael J. Wysocki
Quoted 38 lines · Justin P. Mattock
Quoted 37 lines · Rafael J. Wysocki
Quoted 25 lines · Justin P. Mattock
Quoted 24 lines · Rafael J. Wysocki
Hi,
Quoted 6 lines · Justin P. Mattock
From: "Justin P. Mattock"<[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!Quoted 7 lines
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11Signed-off-by Justin P. Mattock<[email protected]>I suspect the goal is to mark messages printed by the PM trace code so that they can be easily distinguished from messages from other sources to avoid confusion. Why do you think it's a good idea to use the "UTC" string for this purpose? The time printed in those messages need not be UTC.
It would be better to simply print "RTC time: ..., date: ..." IMO.
Quoted 7 lines
Quoted 3 lines
Thanks,
Rafaelwell.. if thats better, then thats better.. over here(people that dont know what RTC time is) would not get so confused with a simple UTC or PDT or whatever the time zone is but if RTC is bettr, then its better.
My point is we don't know this time is always UTC, so we rather shouldn't label it as UTC unconditionally, should we?
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Rafael
sounds good to me!!
I'm not sure what you mean?
with what you are saying "RTC" if anything.. rather than "UTC"
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
So, it looks like you'd like the appended patch to be appiled?
Rafael
whatever works best with you guys...
OK, I'll queue up the one below for 3.1, then.
cool..
Quoted 39 lines
Quoted 37 lines
I just tripped out on that, and created what I had sent out..
Quoted 22 lines
---
From: Rafael J. Wysocki<[email protected]>
Subject: PM: Add "RTC" to PM trace time stamps to avoid confusionSome users are apparently confused by dmesg output from
read_magic_time(), which looks like "real" time and date. Add the "RTC" string to time stamps printed byread_magic_time()to avoid that confusion.Reported-by Justin P. Mattock<[email protected]>Signed-off-by Rafael J. Wysocki<[email protected]>--- drivers/base/power/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Index:
linux-2.6/drivers/base/power/trace.c
===================================================================drivers/base/power/trace.c static unsigned int read_magic_time(void · line 118
Quoted 8 lines
drivers/base/power/trace.c +1
-1@@ -112,7 +112,7 @@ static unsigned int read_magic_time(voidunsigned int val;get_rtc_time (&time); -pr_info ("Time: %2d:%02d:%02d Date: %02d/%02d/%02d\n" , +pr_info ("RTC time: %2d:%02d:%02d, date: %02d/%02d/%02d\n" , time.tm_hour, time.tm_min, time.tm_sec, time.tm_mon +1 , time.tm_mday, time.tm_year %100 ); val = time.tm_year;/* 100 years */ Justin P. Mattock
Quoted 53 lines · Rafael J. Wysocki
Quoted 52 lines · Justin P. Mattock
Quoted 51 lines · Rafael J. Wysocki
Quoted 49 lines · Justin P. Mattock
Quoted 39 lines · Rafael J. Wysocki
Quoted 38 lines · Justin P. Mattock
Quoted 37 lines · Rafael J. Wysocki
Quoted 25 lines · Justin P. Mattock
Quoted 24 lines · Rafael J. Wysocki
Hi,
Quoted 6 lines · Justin P. Mattock
From: "Justin P. Mattock"<[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!Quoted 7 lines
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11Signed-off-by Justin P. Mattock<[email protected]>I suspect the goal is to mark messages printed by the PM trace code so that they can be easily distinguished from messages from other sources to avoid confusion. Why do you think it's a good idea to use the "UTC" string for this purpose? The time printed in those messages need not be UTC.
It would be better to simply print "RTC time: ..., date: ..." IMO.
Quoted 7 lines
Quoted 3 lines
Thanks,
Rafaelwell.. if thats better, then thats better.. over here(people that dont know what RTC time is) would not get so confused with a simple UTC or PDT or whatever the time zone is but if RTC is bettr, then its better.
My point is we don't know this time is always UTC, so we rather shouldn't label it as UTC unconditionally, should we?
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Rafael
sounds good to me!!
I'm not sure what you mean?
with what you are saying "RTC" if anything.. rather than "UTC"
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
So, it looks like you'd like the appended patch to be appiled?
Rafael
whatever works best with you guys...
OK, I'll queue up the one below for 3.1, then.
cool..
Quoted 39 lines
Quoted 37 lines
I just tripped out on that, and created what I had sent out..
Quoted 22 lines
---
From: Rafael J. Wysocki<[email protected]>
Subject: PM: Add "RTC" to PM trace time stamps to avoid confusionSome users are apparently confused by dmesg output from
read_magic_time(), which looks like "real" time and date. Add the "RTC" string to time stamps printed byread_magic_time()to avoid that confusion.Reported-by Justin P. Mattock<[email protected]>Signed-off-by Rafael J. Wysocki<[email protected]>--- drivers/base/power/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Index:
linux-2.6/drivers/base/power/trace.c
===================================================================drivers/base/power/trace.c static unsigned int read_magic_time(void · line 118
Quoted 8 lines
drivers/base/power/trace.c +1
-1@@ -112,7 +112,7 @@ static unsigned int read_magic_time(voidunsigned int val;get_rtc_time (&time); -pr_info ("Time: %2d:%02d:%02d Date: %02d/%02d/%02d\n" , +pr_info ("RTC time: %2d:%02d:%02d, date: %02d/%02d/%02d\n" , time.tm_hour, time.tm_min, time.tm_sec, time.tm_mon +1 , time.tm_mday, time.tm_year %100 ); val = time.tm_year;/* 100 years */ Justin P. Mattock
Quoted 53 lines · Rafael J. Wysocki
Quoted 52 lines · Justin P. Mattock
Quoted 51 lines · Rafael J. Wysocki
Quoted 49 lines · Justin P. Mattock
Quoted 39 lines · Rafael J. Wysocki
Quoted 38 lines · Justin P. Mattock
Quoted 37 lines · Rafael J. Wysocki
Quoted 25 lines · Justin P. Mattock
Quoted 24 lines · Rafael J. Wysocki
Hi,
Quoted 6 lines · Justin P. Mattock
From: "Justin P. Mattock"<[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!Quoted 7 lines
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11Signed-off-by Justin P. Mattock<[email protected]>I suspect the goal is to mark messages printed by the PM trace code so that they can be easily distinguished from messages from other sources to avoid confusion. Why do you think it's a good idea to use the "UTC" string for this purpose? The time printed in those messages need not be UTC.
It would be better to simply print "RTC time: ..., date: ..." IMO.
Quoted 7 lines
Quoted 3 lines
Thanks,
Rafaelwell.. if thats better, then thats better.. over here(people that dont know what RTC time is) would not get so confused with a simple UTC or PDT or whatever the time zone is but if RTC is bettr, then its better.
My point is we don't know this time is always UTC, so we rather shouldn't label it as UTC unconditionally, should we?
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Rafael
sounds good to me!!
I'm not sure what you mean?
with what you are saying "RTC" if anything.. rather than "UTC"
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
So, it looks like you'd like the appended patch to be appiled?
Rafael
whatever works best with you guys...
OK, I'll queue up the one below for 3.1, then.
before anything happens, I just noticed down dmesg:
[ 1.931771] Magic number: 15:676:165 [ 1.940022] rtc_cmos 00:08: setting system clock to 2011-06-19 06:11:22 UTC (1308463882) [ 1.948456] Initializing network drop monitor service
see how there is a UTC after the time. should this be for the above? (keep in mind I just noticed this, so I could be wrong)
Quoted 39 lines
Quoted 37 lines
I just tripped out on that, and created what I had sent out..
Quoted 22 lines
---
From: Rafael J. Wysocki<[email protected]>
Subject: PM: Add "RTC" to PM trace time stamps to avoid confusionSome users are apparently confused by dmesg output from
read_magic_time(), which looks like "real" time and date. Add the "RTC" string to time stamps printed byread_magic_time()to avoid that confusion.Reported-by Justin P. Mattock<[email protected]>Signed-off-by Rafael J. Wysocki<[email protected]>--- drivers/base/power/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Index:
linux-2.6/drivers/base/power/trace.c
===================================================================drivers/base/power/trace.c static unsigned int read_magic_time(void · line 118
Quoted 8 lines
drivers/base/power/trace.c +1
-1@@ -112,7 +112,7 @@ static unsigned int read_magic_time(voidunsigned int val;get_rtc_time (&time); -pr_info ("Time: %2d:%02d:%02d Date: %02d/%02d/%02d\n" , +pr_info ("RTC time: %2d:%02d:%02d, date: %02d/%02d/%02d\n" , time.tm_hour, time.tm_min, time.tm_sec, time.tm_mon +1 , time.tm_mday, time.tm_year %100 ); val = time.tm_year;/* 100 years */ Justin P. Mattock
Quoted 53 lines · Rafael J. Wysocki
Quoted 52 lines · Justin P. Mattock
Quoted 51 lines · Rafael J. Wysocki
Quoted 49 lines · Justin P. Mattock
Quoted 39 lines · Rafael J. Wysocki
Quoted 38 lines · Justin P. Mattock
Quoted 37 lines · Rafael J. Wysocki
Quoted 25 lines · Justin P. Mattock
Quoted 24 lines · Rafael J. Wysocki
Hi,
Quoted 6 lines · Justin P. Mattock
From: "Justin P. Mattock"<[email protected]>
sounds stupid, but taking a glance at the time, and seeing the wrong time, or what seemed wrong in dmesg, caused me to go into total check the time clock panic mode.. So the patch below adds:
"UTC" Coordinated Universal Time abreviation to the printk so people like me dont flip out over the time!Quoted 7 lines
before:
[ 0.114915] Time: 1:47:03 Date: 06/09/11after:
[ 0.114728] Time: 5:46:02 UTC Date: 06/09/11Signed-off-by Justin P. Mattock<[email protected]>I suspect the goal is to mark messages printed by the PM trace code so that they can be easily distinguished from messages from other sources to avoid confusion. Why do you think it's a good idea to use the "UTC" string for this purpose? The time printed in those messages need not be UTC.
It would be better to simply print "RTC time: ..., date: ..." IMO.
Quoted 7 lines
Quoted 3 lines
Thanks,
Rafaelwell.. if thats better, then thats better.. over here(people that dont know what RTC time is) would not get so confused with a simple UTC or PDT or whatever the time zone is but if RTC is bettr, then its better.
My point is we don't know this time is always UTC, so we rather shouldn't label it as UTC unconditionally, should we?
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Rafael
sounds good to me!!
I'm not sure what you mean?
with what you are saying "RTC" if anything.. rather than "UTC"
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
So, it looks like you'd like the appended patch to be appiled?
Rafael
whatever works best with you guys...
OK, I'll queue up the one below for 3.1, then.
before anything happens, I just noticed down dmesg:
[ 1.931771] Magic number: 15:676:165 [ 1.940022] rtc_cmos 00:08: setting system clock to 2011-06-19 06:11:22 UTC (1308463882) [ 1.948456] Initializing network drop monitor service
see how there is a UTC after the time. should this be for the above? (keep in mind I just noticed this, so I could be wrong)
Quoted 39 lines
Quoted 37 lines
I just tripped out on that, and created what I had sent out..
Quoted 22 lines
---
From: Rafael J. Wysocki<[email protected]>
Subject: PM: Add "RTC" to PM trace time stamps to avoid confusionSome users are apparently confused by dmesg output from
read_magic_time(), which looks like "real" time and date. Add the "RTC" string to time stamps printed byread_magic_time()to avoid that confusion.Reported-by Justin P. Mattock<[email protected]>Signed-off-by Rafael J. Wysocki<[email protected]>--- drivers/base/power/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Index:
linux-2.6/drivers/base/power/trace.c
===================================================================drivers/base/power/trace.c static unsigned int read_magic_time(void · line 118
Quoted 8 lines
drivers/base/power/trace.c +1
-1@@ -112,7 +112,7 @@ static unsigned int read_magic_time(voidunsigned int val;get_rtc_time (&time); -pr_info ("Time: %2d:%02d:%02d Date: %02d/%02d/%02d\n" , +pr_info ("RTC time: %2d:%02d:%02d, date: %02d/%02d/%02d\n" , time.tm_hour, time.tm_min, time.tm_sec, time.tm_mon +1 , time.tm_mday, time.tm_year %100 ); val = time.tm_year;/* 100 years */ Justin P. Mattock