summaryrefslogtreecommitdiff
path: root/identify.c
diff options
context:
space:
mode:
authordavej <davej>2002-11-02 03:26:54 +0000
committerdavej <davej>2002-11-02 03:26:54 +0000
commitac18c85efa6229c2ff8efdcc7517ad0f9274860f (patch)
tree91505f16b5aa980cb888ae4ecffea24698d098a7 /identify.c
parent292bd140c618b47847f6d704ae99f7c6c1768e1d (diff)
* identify.c: Print out URLs to errata/datasheet if known.
* x86info.c: Add -u & --urls * Intel/identify.c: Add Pentium 4 URLs
Diffstat (limited to 'identify.c')
-rw-r--r--identify.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/identify.c b/identify.c
index 8a0d6df..2ccaffa 100644
--- a/identify.c
+++ b/identify.c
@@ -1,5 +1,5 @@
/*
- * $Id: identify.c,v 1.24 2002/07/12 01:48:59 davej Exp $
+ * $Id: identify.c,v 1.25 2002/11/02 03:26:54 davej Exp $
* This file is part of x86info.
* (C) 2001 Dave Jones.
*
@@ -104,6 +104,16 @@ void show_info(struct cpudata *cpu)
if (show_connector)
decode_connector (cpu->connector);
+ if (show_urls) {
+ if (cpu->datasheet_url != NULL)
+ printf ("Datasheet: %s\n", cpu->datasheet_url);
+
+ if (cpu->errata_url != NULL)
+ printf ("Errata: %s\n", cpu->errata_url);
+
+ printf ("\n");
+ }
+
if (!user_is_root)
return;