Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: nss/lib/pk11wrap/debug_module.c

Issue 1843333003: Update NSPR to 4.12 and NSS to 3.23 on iOS (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/nss.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* This Source Code Form is subject to the terms of the Mozilla Public 1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 #include "prlog.h" 4 #include "prlog.h"
5 #include <stdio.h> 5 #include <stdio.h>
6 #include "cert.h" /* for CERT_DerNameToAscii & CERT_Hexify */ 6 #include "cert.h" /* for CERT_DerNameToAscii & CERT_Hexify */
7 7
8 static PRLogModuleInfo *modlog = NULL; 8 static PRLogModuleInfo *modlog = NULL;
9 9
10 static CK_FUNCTION_LIST_PTR module_functions; 10 static CK_FUNCTION_LIST_PTR module_functions;
(...skipping 2667 matching lines...) Expand 10 before | Expand all | Expand 10 after
2678 static void print_final_statistics(void) 2678 static void print_final_statistics(void)
2679 { 2679 {
2680 int total_calls = 0; 2680 int total_calls = 0;
2681 PRIntervalTime total_time = 0; 2681 PRIntervalTime total_time = 0;
2682 PRUint32 pr_total_time; 2682 PRUint32 pr_total_time;
2683 char *type; 2683 char *type;
2684 char *fname; 2684 char *fname;
2685 FILE *outfile = NULL; 2685 FILE *outfile = NULL;
2686 int i; 2686 int i;
2687 2687
2688 fname = PR_GetEnv("NSS_OUTPUT_FILE"); 2688 fname = PR_GetEnvSecure("NSS_OUTPUT_FILE");
2689 if (fname) { 2689 if (fname) {
2690 /* need to add an optional process id to the filename */ 2690 /* need to add an optional process id to the filename */
2691 outfile = fopen(fname,"w+"); 2691 outfile = fopen(fname,"w+");
2692 } 2692 }
2693 if (!outfile) { 2693 if (!outfile) {
2694 outfile = stdout; 2694 outfile = stdout;
2695 } 2695 }
2696 2696
2697 2697
2698 fprintf(outfile,"%-25s %10s %12s %12s %10s\n", "Function", "# Calls", 2698 fprintf(outfile,"%-25s %10s %12s %12s %10s\n", "Function", "# Calls",
(...skipping 29 matching lines...) Expand all
2728 fprintf(outfile,"%25s %10d %10d%2s\n", "Totals", total_calls, 2728 fprintf(outfile,"%25s %10d %10d%2s\n", "Totals", total_calls,
2729 pr_total_time, type); 2729 pr_total_time, type);
2730 fprintf(outfile,"\n\nMaximum number of concurrent open sessions: %d\n\n", 2730 fprintf(outfile,"\n\nMaximum number of concurrent open sessions: %d\n\n",
2731 maxOpenSessions); 2731 maxOpenSessions);
2732 fflush (outfile); 2732 fflush (outfile);
2733 if (outfile != stdout) { 2733 if (outfile != stdout) {
2734 fclose(outfile); 2734 fclose(outfile);
2735 } 2735 }
2736 } 2736 }
2737 2737
OLDNEW
« no previous file with comments | « nss/lib/nss/nssoptions.c ('k') | nss/lib/pk11wrap/pk11akey.c » ('j') | nss/lib/util/secoid.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698