PERFORCE change 143354 for review

Julian Elischer julian at FreeBSD.org
Thu Jun 12 07:57:49 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=143354

Change 143354 by julian at julian_trafmon1 on 2008/06/12 07:57:24

	Use the real hostname for dumps
	it has been suggested that we define a R_hostname to mean Real hostname

Affected files ...

.. //depot/projects/vimage-commit2/src/sys/amd64/amd64/dump_machdep.c#3 edit
.. //depot/projects/vimage-commit2/src/sys/amd64/amd64/minidump_machdep.c#3 edit
.. //depot/projects/vimage-commit2/src/sys/arm/arm/dump_machdep.c#3 edit
.. //depot/projects/vimage-commit2/src/sys/i386/i386/dump_machdep.c#3 edit
.. //depot/projects/vimage-commit2/src/sys/i386/i386/minidump_machdep.c#3 edit
.. //depot/projects/vimage-commit2/src/sys/ia64/ia64/dump_machdep.c#3 edit
.. //depot/projects/vimage-commit2/src/sys/mips/mips/dump_machdep.c#2 edit
.. //depot/projects/vimage-commit2/src/sys/sparc64/sparc64/dump_machdep.c#3 edit
.. //depot/projects/vimage-commit2/src/sys/sun4v/sun4v/dump_machdep.c#3 edit

Differences ...

==== //depot/projects/vimage-commit2/src/sys/amd64/amd64/dump_machdep.c#3 (text+ko) ====

@@ -119,7 +119,7 @@
 	kdh->dumplength = htod64(dumplen);
 	kdh->dumptime = htod64(time_second);
 	kdh->blocksize = htod32(blksz);
-	strncpy(kdh->hostname, V_hostname, sizeof(kdh->hostname));
+	strncpy(kdh->hostname, hostname, sizeof(kdh->hostname)); /*XXX vimage0*/
 	strncpy(kdh->versionstring, version, sizeof(kdh->versionstring));
 	if (panicstr != NULL)
 		strncpy(kdh->panicstring, panicstr, sizeof(kdh->panicstring));

==== //depot/projects/vimage-commit2/src/sys/amd64/amd64/minidump_machdep.c#3 (text) ====

@@ -95,7 +95,7 @@
 	kdh->dumplength = htod64(dumplen);
 	kdh->dumptime = htod64(time_second);
 	kdh->blocksize = htod32(blksz);
-	strncpy(kdh->hostname, V_hostname, sizeof(kdh->hostname));
+	strncpy(kdh->hostname, hostname, sizeof(kdh->hostname));/*XXX vimage0*/
 	strncpy(kdh->versionstring, version, sizeof(kdh->versionstring));
 	if (panicstr != NULL)
 		strncpy(kdh->panicstring, panicstr, sizeof(kdh->panicstring));

==== //depot/projects/vimage-commit2/src/sys/arm/arm/dump_machdep.c#3 (text+ko) ====

@@ -117,7 +117,7 @@
 	kdh->dumplength = htod64(dumplen);
 	kdh->dumptime = htod64(time_second);
 	kdh->blocksize = htod32(blksz);
-	strncpy(kdh->hostname, V_hostname, sizeof(kdh->hostname));
+	strncpy(kdh->hostname, hostname, sizeof(kdh->hostname));/*XXX vimage0*/
 	strncpy(kdh->versionstring, version, sizeof(kdh->versionstring));
 	if (panicstr != NULL)
 		strncpy(kdh->panicstring, panicstr, sizeof(kdh->panicstring));

==== //depot/projects/vimage-commit2/src/sys/i386/i386/dump_machdep.c#3 (text+ko) ====

@@ -119,7 +119,7 @@
 	kdh->dumplength = htod64(dumplen);
 	kdh->dumptime = htod64(time_second);
 	kdh->blocksize = htod32(blksz);
-	strncpy(kdh->hostname, V_hostname, sizeof(kdh->hostname));
+	strncpy(kdh->hostname, hostname, sizeof(kdh->hostname));/*XXX vimage0*/
 	strncpy(kdh->versionstring, version, sizeof(kdh->versionstring));
 	if (panicstr != NULL)
 		strncpy(kdh->panicstring, panicstr, sizeof(kdh->panicstring));

==== //depot/projects/vimage-commit2/src/sys/i386/i386/minidump_machdep.c#3 (text) ====

@@ -93,7 +93,7 @@
 	kdh->dumplength = htod64(dumplen);
 	kdh->dumptime = htod64(time_second);
 	kdh->blocksize = htod32(blksz);
-	strncpy(kdh->hostname, V_hostname, sizeof(kdh->hostname));
+	strncpy(kdh->hostname, hostname, sizeof(kdh->hostname));/*XXX vimage0*/
 	strncpy(kdh->versionstring, version, sizeof(kdh->versionstring));
 	if (panicstr != NULL)
 		strncpy(kdh->panicstring, panicstr, sizeof(kdh->panicstring));

==== //depot/projects/vimage-commit2/src/sys/ia64/ia64/dump_machdep.c#3 (text+ko) ====

@@ -74,7 +74,7 @@
 	kdh->dumplength = htod64(dumplen);
 	kdh->dumptime = htod64(time_second);
 	kdh->blocksize = htod32(blksz);
-	strncpy(kdh->hostname, V_hostname, sizeof(kdh->hostname));
+	strncpy(kdh->hostname, hostname, sizeof(kdh->hostname));/*XXX vimage0 */
 	strncpy(kdh->versionstring, version, sizeof(kdh->versionstring));
 	if (panicstr != NULL)
 		strncpy(kdh->panicstring, panicstr, sizeof(kdh->panicstring));

==== //depot/projects/vimage-commit2/src/sys/mips/mips/dump_machdep.c#2 (text+ko) ====


==== //depot/projects/vimage-commit2/src/sys/sparc64/sparc64/dump_machdep.c#3 (text+ko) ====

@@ -70,7 +70,7 @@
 	kdh->dumplength = htod64(dumplen);
 	kdh->dumptime = htod64(time_second);
 	kdh->blocksize = htod32(blksz);
-	strncpy(kdh->hostname, V_hostname, sizeof(kdh->hostname));
+	strncpy(kdh->hostname, hostname, sizeof(kdh->hostname));/*XXX vimage0*/
 	strncpy(kdh->versionstring, version, sizeof(kdh->versionstring));
 	if (panicstr != NULL)
 		strncpy(kdh->panicstring, panicstr, sizeof(kdh->panicstring));

==== //depot/projects/vimage-commit2/src/sys/sun4v/sun4v/dump_machdep.c#3 (text+ko) ====

@@ -71,7 +71,7 @@
 	kdh->dumplength = htod64(dumplen);
 	kdh->dumptime = htod64(time_second);
 	kdh->blocksize = htod32(blksz);
-	strncpy(kdh->hostname, V_hostname, sizeof(kdh->hostname));
+	strncpy(kdh->hostname, hostname, sizeof(kdh->hostname));/*XXX vimage0*/
 	strncpy(kdh->versionstring, version, sizeof(kdh->versionstring));
 	if (panicstr != NULL)
 		strncpy(kdh->panicstring, panicstr, sizeof(kdh->panicstring));


More information about the p4-projects mailing list